diff --git a/jaq-std/src/lib.rs b/jaq-std/src/lib.rs index f0edd2c5..451b89c0 100644 --- a/jaq-std/src/lib.rs +++ b/jaq-std/src/lib.rs @@ -375,7 +375,7 @@ fn base_run>() -> Box<[Filter>]> { }), ("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();