in The Nineteenth Byte, 2 days ago, by
El'endia Starman On a completely different topic, I'd like some thoughts on this: let's say I have a function \cycle
that...well...turns the input into a cycle. So \cycle([0,1])
becomes [0,1,0,1,0,1,...]
and likewise \cycle([2,3])
becomes [2,3,2,3,2,3,...]
, both of which are infinite lists. The question: what should \cycle([ \cycle([0,1]), \cycle([2,3]) ])
be? Or, alternatively, if you loop through it with a for loop and print each item, what should the output be?