Sherlock, Ric wrote:
> I was looking for a phrase that would make an atom (rank 0) into a 
> 1-item list, but leaves anything else "as is".
...
> and so I came up with this which seems to do the job.
> listatom=: ,^:(#@:$ = 0:)

RH> la1=: ,^:([EMAIL PROTECTED])
RM> la2=:,0&#
CB> la3=:1&# 
 
Thanks I knew there must be simpler ways!!
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to