Every time I learn a new programming language, I spend about 2 days 
implementing utilities directly inspired (read: stolen) from J.  

Not so much hook / fork or other composition functions, but things like /. 
(key) and #: (antibase) and so on, which are unreasonably effective in the 
actual practice of programming.



> On Mar 23, 2016, at 12:51 PM, David Lambert <[email protected]> wrote:
> 
> I had an assignment to write a python program, and I've used python daily for 
> 15 years.  I wrote the program in j then translated to python.  The python 
> includes
> 
> # some definitions from j
> hook_monad = lambda u, v: lambda y, u=u, v=v: u(y, v(y))
> fork_monad = lambda u, v, w: lambda y, u=u, v=v, w=w: v(u(y), w(y))
> hook_dyad = lambda u, v: lambda x, y, u=u, v=v: u(x, v(y))
> fork_dyad = lambda u, v, w: lambda x, y, u=u, v=v, w=w: v(u(x,y), w(x,y))
> At_monad = lambda u, v: lambda y, u=u, v=v: u(v(y))
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to