author | wenzelm |
Thu, 14 Dec 2017 21:40:43 +0100 | |
changeset 67206 | b8f30228a55b |
parent 67205 | 06c91eac25f2 |
child 67207 | ad538f6c5d2f |
--- a/src/Pure/ML/ml_init.ML Thu Dec 14 21:31:54 2017 +0100 +++ b/src/Pure/ML/ml_init.ML Thu Dec 14 21:40:43 2017 +0100 @@ -31,3 +31,11 @@ structure Basic_Exn: BASIC_EXN = Exn; open Basic_Exn; + +structure String = +struct + open String; + fun substring (s, i, n) = + if n = 1 then String.str (String.sub (s, i)) + else String.substring (s, i, n); +end;