For and Range components (loop/iterators) #280
emil14
started this conversation in
Standard Library
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These components took numbers as inputs and produces sequences (substreams) of numbers on the out. E.g.
for
for everyto
on the input produces1, ... N
on the outport. E.g.For(5) -> (0 1 2 3 4) ->
. Same for range except it possible to start from something that is not zero.Also range could probably work in the opposite direction like
range(5, 2) -> (5, 4, 3, 2) ->
. There are some questions BTWProblems
to
be inclusive or exclusive like in e.g. Python?while
?Beta Was this translation helpful? Give feedback.
All reactions