< y (Box)
Converts any array y to Boxed form, ie suitable for use with an array of boxed forms, such as you get with using Link (;) or Words (;:).
Common uses
To add elements to a vector of boxed strings:
]zub=: ;:'alpha bravo charlie' +-----+-----+-------+ |alpha|bravo|charlie| +-----+-----+-------+ zub,<'delta' +-----+-----+-------+-----+ |alpha|bravo|charlie|delta| +-----+-----+-------+-----+
To compare a string with contents of a vector of boxed strings:
zub = <'bravo' 0 1 0
Some primitives and Foreigns (!:), especially those designed to work on a boxed list of names, demand a boxed argument if only one name is given.
xx=: yy=: zz=: 99 4!:55 'zz' NB. try to erase word: zz |domain error | 4!:55'zz' 4!:55 <'zz' NB. erase word: zz 1 4!:55 'xx' ; 'yy' 1 1
The z-locale verb: erase, which invokes 4!:55, accepts either a boxed or an unboxed string.
The z-locale verb: boxopen boxes its argument, but only if unboxed:
boxopen 'zz' +--+ |zz| +--+ boxopen <'zz' +--+ |zz| +--+
See Also
Open (>)
x < y (Less Than)
Returns Boolean (0 or 1) if and only if x<y is true.
z=: 7 8 9 z < 8 1 0 0
Common uses
Mainly found in the logical conditions of if. statements within verb definitions:
if. x<y do. 'x y'=. y;x end.
See Also
Larger Than (>)
Larger Or Equal (>:)
Less Or Equal (<:)
