fixes
This commit is contained in:
parent
ab18cdbf35
commit
908dc4b06b
2 changed files with 4 additions and 3 deletions
3
iter.spl
3
iter.spl
|
@ -38,9 +38,10 @@ construct _Iter {
|
||||||
filter this FilterIter:new
|
filter this FilterIter:new
|
||||||
}
|
}
|
||||||
skip { this | with amount this ;
|
skip { this | with amount this ;
|
||||||
{ |
|
{ | pop
|
||||||
this:next;
|
this:next;
|
||||||
} amount:foreach
|
} amount:foreach
|
||||||
|
this
|
||||||
}
|
}
|
||||||
count { mega | with this ;
|
count { mega | with this ;
|
||||||
def n 0 =n
|
def n 0 =n
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
use spl::start_file;
|
use spl::{start_file, find_in_splpath};
|
||||||
|
|
||||||
use std::env::args;
|
use std::env::args;
|
||||||
|
|
||||||
fn main() {
|
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:?}");
|
println!("{x:?}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue