[Jprogramming] Repeated application of a verb
Raul Miller
rauldmiller at gmail.com
Sun Oct 9 04:38:51 HKT 2011
2011/10/8 Björn Helgason <gosinn at gmail.com>:
> (- ^: (trigger */@:-. at e.~ ])^:_ ) 2 3 5 7
> 2 3 5 7
> (- ^: (trigger */@:-. at e.~ ])^:_ ) 33
>
> goes into a seemingly endless loop
Of course.
The sequence generated looks like this:'
33
_33
33
_33
33
_33
...
(with each subsequent value on a different line.)
The loop terminates when the result list contains (presumably) a 2 or a 5.
How long do imagine it will need to run, before a 2 or a 5 is generated?
--
Raul
More information about the Programming
mailing list