Skip to content

Commit

Permalink
Potentially make first a little faster.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Nov 14, 2024
1 parent f852046 commit 05652cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaq-std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ fn base_run<V: ValT, F: FilterT<V = V>>() -> Box<[Filter<RunPtr<V, F>>]> {
}),
("first", f(), |lut, mut cv| {
let (f, fc) = cv.0.pop_fun();
Box::new(f.run(lut, (fc, cv.1)).take(1))
Box::new(f.run(lut, (fc, cv.1)).next().into_iter())
}),
("last", f(), |lut, mut cv| {
let (f, fc) = cv.0.pop_fun();
Expand Down

0 comments on commit 05652cb

Please sign in to comment.