bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Committed value?


From: David Lamkins
Subject: Re: [Bug-apl] Committed value?
Date: Sun, 27 Jul 2014 21:47:38 -0700

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 <address@hidden> 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" <address@hidden> 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/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]