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 Details

    • 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".
  • Method Details

    • print

      public static String print(Object value, String format)
      Print a given value 2-dimensionally.
    • getSize

      public static int getSize(Array arr)
    • getSizePrefix

      public static int getSizePrefix(Array arr)