Loops/Foreach: Difference between revisions

m
Line 1,274:
cells bounds do i @ . cell +loop ; \ 3 2 1</lang>
===FOREACH===
ThisThe thing about extensible languages is if you need FOREACH, you can have FOREACH.
The Forth ' operator returns the "execution token" (XT) of a Forth word. An XT can be run with EXECUTE.
If we apply an appropriate execution to all the elements of an array we have it.
Anonymous user