Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はスキームを学んでいるだけですが、繰り返しを少なくしたいと思っています。
ローカルスコープの部分式に名前を割り当てる方法はありますか?
コメントによると:
Haskellwhere句
x = s * t where s = 10 t = 20
この場合、xは200である必要があります。
Let (または再帰バインディングの letrec)、例:
(define (f g) (let ((x 1) (y (* g 2))) (+ x y)))