I'm new to this code-golfing thing and I'm very interested in CJam.
Is there a way to get all the current stack as an array? I think I can do it with something like
[1$ 2$...n$] but I would have to get the stack's length and use some kind of iterator (or use a fixed length stack... useless). But is there a way to achieve this with a single operator?
The thing is I want to iterate over all the stack's elements.
Sorry if the question is obvious or seems stupid, but I'm new to this and I couldn't find anything...