Just remember you can't use it on empty operands unless you give a fill:

   ''&$ ''
|length error
|       ''&$''
   ''&($!.'') ''

Henry Rich

On 6/20/2014 7:36 AM, David Lambert wrote:
    g=: ''&$

    g ,8
8

    $g ,8


    g i.2 3 4
0 1  2  3
4 5  6  7
8 9 10 11

    f=: {. : (4 :'{.^:x y')

    (f -: g)&> 2;'abc';i.-4 3 2
1 1 1


    0 1 2 (f -: g)&>/ 2;'abc';i.-4 3 2
1 1 1
1 1 1
1 1 1

    NB. Is this already in Dan's j synonym collection?
----------------------------------------------------------------------
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