feather::lambda <args> <body>
args and body arguments are the same as for
[proc].
A lambda object is simply an unnamed procedure and is very useful if you want a procedure but do not want to worry about what name to give it.
% set square [feather::lambda {x} {expr {$x * $x}}]
<feather::lambda(1,1)>
% $square 12
144
% proc compose {f g} {
# returns a function equivalent to [$f [$g $x]]
return [feather::curry [feather::lambda {f g x} {$f [$g $x]}] $f $g]
}
%