Suppose I need to unescape XML escaped characters in a given string: e.g. I need to replace &
with &
, "
with "
, <
with <
etc. I would prefer a purely functional solution.
Does it make sense to do it with scalaz.Zipper
? Zipper
allows checking the characters to the right of the focus and skipping them while moving forward. Won't it be an overkill ? Would you suggest a simpler solution ?