Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.re: continuing next iteration

8 views
Skip to first unread message

Robert L.

unread,
Jan 21, 2017, 1:19:44 PM1/21/17
to
Rob Warnock wrote:

> Hunh? I do stuff like that all the time, e.g.:
>
> > (loop for i below 6
> finally (return (reverse (pairlis list list2)))
> do (format t "~d" i)
> collect i into list
> do (format t "^2 = ~2d~%" (* i i))
> collect (* i i) into list2)
> 0^2 = 0
> 1^2 = 1
> 2^2 = 4
> 3^2 = 9
> 4^2 = 16
> 5^2 = 25
> ((0 . 0) (1 . 1) (2 . 4) (3 . 9) (4 . 16) (5 . 25))

Ruby:

(0 ... 6).map{|i|
printf "%d^2 = %2d\n", i, i*i
[i, i*i]}

0^2 = 0
1^2 = 1
2^2 = 4
3^2 = 9
4^2 = 16
5^2 = 25
==>[[0, 0], [1, 1], [2, 4], [3, 9], [4, 16], [5, 25]]

In Forth?

--
The major media are controlled and run by Jews. They want White people dead,
replaced, mixed, and immigrated and migrated and refugeed out of existence.
Telling the truth about racially-motivated attacks on Whites by Blacks does not
fit their agenda.
nationalvanguard.org/2016/10/how-can-we-stop-the-mystery-attacks/
0 new messages