RosettaCodeData/Task/Higher-order-functions/TXR/higher-order-functions.txr

9 lines
197 B
Plaintext

@(bind a @(let ((counter 0))
(mapcar (lambda (x y) (list (inc counter) x y))
'(a b c) '(t r s))))
@(output)
@ (repeat)
@ (rep)@a:@(last)@a@(end)
@ (end)
@(end)