The schema is equivalent to the Haskell where clause

I am just studying the circuit, but I would like to repeat myself less.

Is there a way to name a subexpression in a local scope?

According to the comment:

Haskell where's the offer

x = s * t where s = 10 t = 20 

x in this case should be 200.

+4
source share
1 answer

Let (or letrec for recursive bindings), for example:

 (define (fg) (let ((x 1) (y (* g 2))) (+ xy))) 
+9
source

All Articles