This commit is contained in:
Daniella 2023-03-28 02:54:16 +02:00
parent ab18cdbf35
commit 908dc4b06b
Signed by: TudbuT
GPG key ID: 7D63D5634B7C417F
2 changed files with 4 additions and 3 deletions

View file

@ -38,9 +38,10 @@ construct _Iter {
filter this FilterIter:new
}
skip { this | with amount this ;
{ |
{ | pop
this:next;
} amount:foreach
this
}
count { mega | with this ;
def n 0 =n

View file

@ -1,9 +1,9 @@
use spl::start_file;
use spl::{start_file, find_in_splpath};
use std::env::args;
fn main() {
if let Err(x) = start_file(&args().nth(1).expect("no file provided to be started.")) {
if let Err(x) = start_file(&args().nth(1).unwrap_or_else(|| find_in_splpath("repl.spl").expect("no file to be run"))) {
println!("{x:?}");
}
}