Is there a J idiom for adding to a list until a certain condition is met?
问题 Imagine you're generating the Fibonacci numbers using the obvious, brute-force algorithm. If I know the number of Fibonaccis I want to generate in advance, I can do something like this using the power conjunction ^: : (, [: +/ _2&{.)^:20 i.2 How can I instead stop when the Fibonaccis reach some limit, say 1e6 ? (I know how to do this inside a function using while. , but that's no fun.) I want to stress that this is a general question about J, not a specific question about Fibonacci. Don't get