This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (* string -> string -> string | |
| * Takes a string and an one letter string (char), produces a string with all the | |
| * ocurrences of char removed. *) | |
| fun remove_char str char = | |
| let | |
| val str_lst = List.map (fn x => String.str x) (String.explode str) | |
| in | |
| concat (List.filter(fn s => not(s = char)) str_lst) | |
| end |