APLX Help : Help on APL language : System Functions & Variables : ⎕BOX Vector ←→ Matrix
|
|
![]() |
|
Converts a vector to a matrix, or a matrix to a vector using optional fill characters and line delimiters. One-argument formIn creating a matrix from a vector, ⎕BOX 'LEE PRENDERGAST PSMITH' LEE PRENDERGAST PSMITH When TAB APL LISP PASCAL ⎕BOX TAB APL LISP PASCAL Two-argument formThe two argument form of '*' ⎕BOX 'JAN FEB MAR* 1 2 3' JAN FEB MAR 1 2 3 Here's an example with '.' used as the filler: '/.' ⎕BOX 'LEE/PRENDERGAST/PSMITH' LEE........ PRENDERGAST PSMITH..... In this next example, $ is treated as the delimiting character and the space character as the filler in the matrix TAB (defined above): '$' ⎕BOX TAB APL$LISP$PASCAL If the matrix contains 'filler' symbols, these can be removed: NAMETAB LEE........ PRENDERGAST PSMITH..... '$.' ⎕BOX NAMETAB LEE$PRENDERGAST$PSMITH
⎕BOX 1 2 3 0 1 2 1 2 3 1 2 0 ¯1 ¯6 ⎕BOX 2 3 4 ¯1 6 ¯1 ¯1 8 2 2 3 4 6 ¯6 ¯6 ¯6 ¯6 ¯6 8 2 ¯6 |
|
APLX Help : Help on APL language : System Functions & Variables : ⎕BOX Vector ←→ Matrix
|
Copyright © 1996-2010 MicroAPL Ltd