The diadic version of #: might be useful here:
(4#2) #: 3
gives
0 0 1 1
Philip
Le 20.01.2015 14:54, Jon Hough a écrit :
This is a little problem I'm having.
Let
f =: #: 3
g =: #: 14
If I do f ,: g
I get
1 0 0 0
1 1 1 0
Here the shorter number , f, has a zero post-pended to match the shape
of g.
I would like to find an equivalent verb that prepends the zero.
i.e. , in the case of the above f and g
f some_verb g
gives
0 1 0 0
1 1 1 0
Any help appreciated.
Jon
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
[1]
Links:
------
[1] http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm