That works in an expression, of course. It doesn't survive return from a
function, though.
a←⊣3
a
3
⎕cr 'foo'
z←foo b
z←⊣b
foo 3
3
On Sun, Jul 27, 2014 at 7:43 PM, Elias Mårtenson <[email protected]> wrote:
> Now that I think about it, there is actually.
>
> You use the monadic left-tack function. It's a variation of monadic
> right-tack which is the identity function.
>
> Regards,
> Elias
> On 28 Jul 2014 02:03, "David B. Lamkins" <[email protected]> wrote:
>
>> Is there a way to have a defined function return a committed value?
>>
>> IOW, the function returns a value that can be assigned, but doesn't
>> print.
>>
>>
>>
--
"Far out in the uncharted backwaters of the unfashionable end of the
Western Spiral arm of the Galaxy lies a small unregarded yellow sun.
Orbiting this at a distance of roughly ninety-eight million miles is an
utterly insignificant little blue-green planet whose ape-descended life
forms are so amazingly primitive that they still think programming in Java
is a pretty neat idea."
-- With apologies to Douglas Adams, who I like to think would have
appreciated this.
http://soundcloud.com/davidlamkins
http://reverbnation.com/lamkins
http://reverbnation.com/lcw
http://lamkins-guitar.com/
http://lamkins.net/
http://successful-lisp.com/