take -package:vector package:conduit

Stream up to n number of values downstream. Note that, if downstream terminates early, not all values will be consumed. If you want to force exactly the given number of values to be consumed, see takeExactly. Subject to fusion
Take some values from the stream and return as a list. If you want to instead create a conduit that pipes data to another sink, see isolate. This function is semantically equivalent to:
take i = isolate i =$ consume
Subject to fusion Since 0.3.0
Stream up to n number of values downstream. Note that, if downstream terminates early, not all values will be consumed. If you want to force exactly the given number of values to be consumed, see takeExactly.
Stream up to n number of elements downstream in a chunked stream. Note that, if downstream terminates early, not all values will be consumed. If you want to force exactly the given number of values to be consumed, see takeExactlyE.
Consume precisely the given number of values and feed them downstream. This function is in contrast to take, which will only consume up to the given number of values, and will terminate early if downstream terminates early. This function will discard any additional values in the stream if they are unconsumed. Note that this function takes a downstream ConduitT as a parameter, as opposed to working with normal fusion. For more information, see http://www.yesodweb.com/blog/2013/10/core-flaw-pipes-conduit, the section titled "pipes and conduit: isolate".
Same as takeExactly, but for chunked streams.
Stream all values downstream that match the given predicate. Same caveats regarding downstream termination apply as with take.
Stream all elements downstream that match the given predicate in a chunked stream. Same caveats regarding downstream termination apply as with takeE.
Stream up to n number of elements downstream in a chunked stream. Note that, if downstream terminates early, not all values will be consumed. If you want to force exactly the given number of values to be consumed, see takeExactlyE.
Consume precisely the given number of values and feed them downstream. This function is in contrast to take, which will only consume up to the given number of values, and will terminate early if downstream terminates early. This function will discard any additional values in the stream if they are unconsumed. Note that this function takes a downstream ConduitT as a parameter, as opposed to working with normal fusion. For more information, see http://www.yesodweb.com/blog/2013/10/core-flaw-pipes-conduit, the section titled "pipes and conduit: isolate".
Same as takeExactly, but for chunked streams.
Stream in the chunked input until an element matches a predicate. Like takeExactly, this will consume the entirety of the prefix regardless of the behavior of the inner Conduit.
Stream all values downstream that match the given predicate. Same caveats regarding downstream termination apply as with take.
Stream all elements downstream that match the given predicate in a chunked stream. Same caveats regarding downstream termination apply as with takeE.