Fork of Standard ML/NJ to a more C like syntax.

"Mythryl deftly combines C speed, Lisp power, and Ruby convenience with the critical new ingredients of Hindley-Milner typing, state of the art generics and just the right level of side effects." -- from the Mythryl website

fun read_lines input_stream
        =
        read_lines' (input_stream, [])
        where
            fun read_lines' (input_stream, lines_so_far)
                =
                case (file::read_line input_stream)
                    NULL     => reverse lines_so_far; 
                    THE line => read_lines' (input_stream, line ! lines_so_far);
                esac;
        end;
Information updated 04/04/16
View Comments