1 PREV: concatenating.txt NEXT: infix_specifics.txt
6 Intended for use with the |cat| function, crop can do some powerful
7 things. Crop accepts a number and the data structure from which you want
10 Start by initializing some variables.
12 ------------------------------------------------------------------------
14 store("A", vcat(cat(3,5,7) cat(2,4,6) 2))
16 (store "A" (vcat (cat 3 5 7) (cat 2 4 6) 2))
22 ------------------------------------------------------------------------
24 store("u", vcat(1,2,3))
26 (store "u" (vcat 1 2 3))
30 ------------------------------------------------------------------------
39 Get the 2 left columns /A/.
41 ------------------------------------------------------------------------
49 Get the bottom 2 rows of /A/.
51 ------------------------------------------------------------------------
58 Only one column vector cropped from the right of /A/,
59 it is automatically transformed into a vector.
61 ------------------------------------------------------------------------
68 Like the previous example, only one element is cropped from vector /u/
69 so it is returned as a plain number.
71 NOTE: To get this effect, you must use vcrop instead of crop.
73 ------------------------------------------------------------------------
80 Using crop on a vector just returns it.
82 ------------------------------------------------------------------------
83 vim:ft=:expandtab:tw=72: