Hardly anybody uses Fold, so we really don't know what extensions it
might need.
What's the first index in y for which (f y) is true?
1 i.~ f y
is pretty easy, though not so hot if 100000000=#y and the first
occurrence is at index 5. That would be a good job for Fold,. When we
see enough use of it for people to ask for improvements, it will be time
to consider them.
The fact that no one has asked for a faster implementation of Fold
testifies to its disuse.
Henry Rich
On 12/13/2023 1:31 PM, Raul Miller wrote:
Actually, thinking about this (while waiting for feedback), this would
be an extension to Fold.
So I guess another question would be: what other sort of extension
would be more valuable than something we've already decided on?
No rush for answers here, I guess.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm