Somewhere there is a description of how to use dyad ;: to emulate monad ;: . You can modify that as required.

Henry Rich

On 10/19/2012 8:57 PM, bob therriault wrote:
What about using cut? (;.)

  k=.'blåbærgrød'
    k
blåbærgrød
    t=: (a:-.~<;._2)@,&' '  NB. removing a: to clean up multiple spaces
    t k
+-------------+
|blåbærgrød|
+-------------+
    k=.'blåbærgrød blåbærgrød'
    t k
+-------------+-------------+
|blåbærgrød|blåbærgrød|
+-------------+-------------+
    k=.'blåbærgrød         blåbærgrød'
    t k
+-------------+-------------+
|blåbærgrød|blåbærgrød|
+-------------+-------------+

On 2012-10-19, at 4:05 PM, Bo Jacoby wrote:

    k=.'blåbærgrød'

----------------------------------------------------------------------
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