Package 

Class HCReaderKt

    • Method Detail

      • withHCReader

         final <P extends Any> P withHCReader(String input, Regex tokenDelimiter, Function1<HCReader, P> readProblem)

        Executes the given readProblem function on a new HCReader, reading the given input text. The reader is closed whether an exception is thrown or not.

      • withHCReader

         final <P extends Any> P withHCReader(Path path, Regex tokenDelimiter, Function1<HCReader, P> readProblem)

        Executes the given readProblem function on a new HCReader, reading the file at the given path. The reader is closed whether an exception is thrown or not.