SpacedOut.Readval string_as : 'a cast -> string -> 'astring_as c reads a string and casts it using c.
val line_as : 'a cast -> Stdlib.in_channel -> 'aline_as c reads one line from a channel and casts it using c.
val lines_until_empty_as : 'a cast -> Stdlib.in_channel -> 'a listlines_until_empty_as c reads lines from a channel and casts them using c. It stops at the first empty line it meets.
val int : int castval bit : bool castval float : float castval char : char castval string : string castval no_space_string : string castCast that checks that its input does not contain a space and returns it right away. In seq, list and array below, it is no different to string. In the tupleng functions below, it is only different to string in last position.
For each tuple size n (up to 9), we provide a function tuple_<n> as well as some common aliases (eg. pair for tuple_2 or pentuple for tuple_5). tuple_<n> takes n cast functions and returns an n-tuple.
tuple_<n> ~sep c1 ... c<n> is a cast that cuts its input at the n - 1 first seps (which default to blank characters) and applies c1 on the first part, c2 on the second part, ... and c<n> on the nth part, returning the n-tuple of the results.
val cast : (string -> 'a) -> 'a castCreate a cast from a string -> 'a function.