0

Im new to Haskell. I was reading through the Zipper data structure from learnyouahaskell.com . I am simply not able to understand when and why would I use a Zipper for trees or lists or anything

Imraan Khan
  • 375
  • 1
  • 3
  • 9
  • A use case not present in the answer @Thilo linked, is [`xml-conduit`](https://hackage.haskell.org/package/xml-conduit). – epsilonhalbe Mar 12 '17 at 11:58
  • This (Elm) presentation has a nice use case for zippers: https://www.youtube.com/watch?v=IcgmSRJHu_8 – danidiaz Mar 12 '17 at 12:20
  • I found http://blog.ezyang.com/2010/04/you-could-have-invented-zippers/ useful: updating an immutable tree with bidirectional nodes requires rewriting the entire tree. Updating an immutable tree represented as a zipper only requires updating one node. – chepner Mar 12 '17 at 14:22

0 Answers0