[Jprogramming] Repeated application of a verb
Henry Rich
HenryHRich at nc.rr.com
Sat Oct 8 22:19:47 HKT 2011
I used Project Euler as an introduction to my J class this year. PE27
was one of the assignments:
http://www.raleighcharterhs.org/faculty/hrich/Courses/PSE/Unit%200%20Project%20Euler/HW%2014%20PE27%20Polynomials%20and%20looping.html
The discussion there includes ^: .
Henry Rich
On 10/8/2011 6:23 AM, David Vaughan wrote:
> 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
>
More information about the Programming
mailing list