Comment detail

隣り合う二項の差 (Nested Flatten)

This comment is reply for 2417 kacchi: srfi-42 の comprehens...(隣り合う二項の差). Go to thread root.

:parallelで複数の変数に対してループを回せます。
1
(define (diff xs) (list-ec (:parallel (: x xs) (: y (cdr xs))) (- y x)))
なるほどです。どうもありがとうございます。
:parallel は知っていたのに気付かなかったのが残念です。

Index

Feed

Other

Link

Pathtraq

loading...