|
Nice uses of map - guess I was a little to flustered to see those! Interesting way of doing the second one - I used the fact that if the first list is a prefix of t he second then all the positions of elements in the first have to have at least one position be the same; ie the first symbol in the first list should be in at least the first position of the second - it can be in more, but all I care about is that one of them is the same. |
to: