I agree fully with Daniel's suggestions.
Daniel's first example is also in a style popular among Racketeers.
Since I think not everyone has exactly the same verbal/visual cognitive
makeup, below is the same code with some slight tweaks in style, to
appeal to different people. (You'll want to
On Sat, Nov 09, 2013 at 11:53:37AM -0800, Daniel Prager wrote:
> >
> > (I noticed that the code ran under Racket v5.3.4. but under
> > Racket v5.2.1. none of the code ran - it showed
> > for: bad sequence binding clause at: #:break?)
>
>
> The #:break clause isn't available in the for form of v5.
>
> (I noticed that the code ran under Racket v5.3.4. but under
> Racket v5.2.1. none of the code ran - it showed
> for: bad sequence binding clause at: #:break?)
The #:break clause isn't available in the for form of v5.2.1:
http://download.racket-lang.org/docs/5.2.1/html/reference/for.html?q=fo
Hello
I am learning to program in racket - and have questions regarding forcing
the exit from a for loop. I wrote the following program to determine the
largest prime factor of a number. (The correct answer being 11 in the case
of input 165)
4 matches
Mail list logo