|
Both explode and implode are builtin functions in SML. The interesting part of the anagram problem is the manipulation of lists of characters. But the input and output are no fun to look at as lists of characters---they look much nicer as character strings. So, do the real work with lists of characters, then convert the input and output with the explode and implode functions.
For the second question, check my previous post.
Mike O'D.
|