RosettaCodeData/Task/Loop-over-multiple-arrays-simultaneously/Racket/loop-over-multiple-arrays-simultaneously.rkt

8 lines
171 B
Racket
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
#lang racket
2015-11-18 06:14:39 +00:00
(for ([x '(a b c)] ; list
[y #(A B C)] ; vector
[z "123"]
[i (in-naturals 1)]) ; 1, 2, ... infinitely
(printf "~s: ~s ~s ~s\n" i x y z))