Objective

I can write a recursive function that works on a string.


LetterSwap

(swap "wallaby" "a" "x") => "wxllxby"

swap: word original replace -> string

Change the letter original to the letter replace in the word.


No Mistakes

no-mistake: string(word) -> string

Remove every appearance of “mistake” inside the given word.