src/main/java/WhitespaceInterpreter.java
/**
     * Convert the "whitespace" source code into a queue of tri-state codes.
     * As:
     *    ' ' is often the equivalent of binary 0, so use 0
     *    '\t' is often the equivalent of binary 1, so use 1
     *    '\n' if usually more special, so use -1
     *
     * @param source String of Whitespace code
     * @return an Array of Integer codes
     */
Convert the "whitespace" source code into a queue of tri-state codes.

@param source String of Whitespace code
@return an Array of Integer codes
Convert the " whitespace " source code into a queue of tri - state codes . @param source String of Whitespace code @return an Array of Integer codes
public static Integer[] toCodes(String source){
        return source
                .chars()
                .filter(Character::isWhitespace)
                .map(c -> (c == ' ') ? 0 : (c == '\t') ? 1 : -1)
                .boxed()
                .toArray(Integer[]::new);
    }
public static Integer [ ] toCodes ( String source ) { return source . chars ( ) . filter ( Character :: isWhitespace ) . map ( c -> ( c == ' ' ) ? 0 : ( c == '\t' ) ? 1 : - 1 ) . boxed ( ) . toArray ( Integer [ ] :: new ) ; }
Convert the "whitespace" source code into a queue of tri-state codes.
Convert the " whitespace " source code into a queue of tri - state codes .
//.collect(Collectors.toList()) //.toArray(new Integer[0]);