Package gnu.kawa.functions
Class ArrayPrint
- java.lang.Object
-
- gnu.kawa.functions.ArrayPrint
-
public class ArrayPrint extends Object
Pretty-print an array (in APL-style). This is compatible with SRFI 163 (https://srfi.schemers.org/srfi-163).
-
-
Field Summary
Fields Modifier and Type Field Description static int
useInitialBoxChar
Should the first character be a box character, or '#'? The former is slightly prettier, but the latter is recommended by SRFI 163 because it potentially enables parsing of the output.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getSize(Array arr)
static int
getSizePrefix(Array arr)
static String
print(Object value, String format)
Print a given value 2-dimensionally.
-
-
-
Field Detail
-
useInitialBoxChar
public static int useInitialBoxChar
Should the first character be a box character, or '#'? The former is slightly prettier, but the latter is recommended by SRFI 163 because it potentially enables parsing of the output. The value 1 is "always"; -1 is "never", 0 is "if available space".
-
-