Is there a ready-made lisp macro that allows you to bind (bind) functions? I could not find him. I will try to explain what I mean with this example.
Instead of using let * with many unused intermediate variables, such as:
(let*
((var1 (f1 x y))
(var2 (f2 x var1))
(var3 (f1 var2 z)))
var3)
I would like it to be written like this:
(->
(f1 x y)
(f2 x _)
(f1 _ z))
where, obviously, _ will be the return value from the previous expression. Plus, if one could use _1 , _2 , ... to refer to previously returned values.
This is an idea; the exact syntax is not so important.
I know that it is not so difficult to write, but it seems so useful that it should already be written.
Marko