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 intuseInitialBoxCharShould 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 intgetSize(Array arr)static intgetSizePrefix(Array arr)static Stringprint(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".
-
-