From: Jon Rafkind (rafkind at cs.utah.edu) Date: Fri Jun 12 02:00:09 EDT 2009 |
|
MD.MAHBUBUR RASHEED wrote: > Hi, > How can I implement loop in plt-scheme like in java- > > for(int i=0;i<10;){ > for(int j=0;j<3;){ > System.out.println(""+j); > j++; > } > System.out.println(""+i); > i++; > } > (for-each (lambda (i) (for-each (lambda (j) (printf "~a\n" j)) (build-list 3 (lambda (x) x))) (printf "~a\n" i)) (build-list 10 (lambda (x) x)))
Posted on the users mailing list. |
|