[Jprogramming] Repeated application of a verb
Björn Helgason
gosinn at gmail.com
Sat Oct 8 19:45:27 HKT 2011
https://groups.google.com/forum/?hl=is#!topic/j-programming/gImUBALaDEg
2011/10/8 David Vaughan <purpleblues13 at googlemail.com>
> Hi, I am looking to repeatedly apply a verb on itself until a certain value
> is reached, with the prior knowledge that there are two values that can be
> reached. The idea is to count how many times one of the two values comes up.
> I know about the power verb but I'm not sure how to use it properly beyond
> the simple v^:n y form. I've read about using it like a C while loop but in
> my case, there are two values I want to 'exit the loop' with.
>
> Any pointers? Thanks.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: gosinn at gmail.com
gsm: +3546985532
twitter: @flugfiskur
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=) ♖♘♗♕♔♙
`. )----' (")_(") ☃☠
More information about the Programming
mailing list