Transducers.jl icon indicating copy to clipboard operation
Transducers.jl copied to clipboard

TakeExactly and TakeAtMost

Open jtrakk opened this issue 4 years ago • 0 comments

A thought inspired by https://github.com/JuliaFolds/Transducers.jl/issues/481:

Take(n)

Take n items from the input sequence.

This makes me think 1:3 |> Take(10) would error. To make the behavior more self-explanatory it could be TakeAtMost(10) for the permissive version and TakeExactly(10) for the error?

jtrakk avatar Jun 13 '21 09:06 jtrakk