Class ArrayPrint


  • public class ArrayPrint
    extends java.lang.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 java.lang.String print​(java.lang.Object value, java.lang.String format)
      Print a given value 2-dimensionally.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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".
    • Method Detail

      • print

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

        public static int getSize​(Array arr)
      • getSizePrefix

        public static int getSizePrefix​(Array arr)