> y (Open)

Back to: Vocabulary

Opens (undoes the boxing) of a boxed element or array of boxed elements.

The effect of unboxing a list of n boxed strings is to convert it to a matrix of n rows:

   ]zub=: ;:'alpha bravo charlie'
+-----+-----+-------+
|alpha|bravo|charlie|
+-----+-----+-------+
   > zub
alpha  
bravo  
charlie
   $ > zub
3 7

Common uses

Having extracted a given element from a list of boxed strings, you need to unbox the element before you can use it as a string:

   1 { zub
+-----+
|bravo|
+-----+
   > 1 { zub
bravo

See Also


x > y (Larger Than)

Back to: Vocabulary

Returns Boolean (0 or 1) if and only if x>y is true.

   z=: 7 8 9
   z > 8
0 0 1

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


CategoryVoc

Vocabulary/gt (last edited 2012-02-17 00:58:01 by IanClark)