Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

take

🌌list.take

Lazily take the first n elements of a list, alternatively the whole list if it
is shorter than n, or the empty list if n <= 0

redefines Sequence.take:
create a list that consists only of the first n elements of this
Sequence, fewer if this stream has fewer elements