[Haskell] ANNOUNCE: ListZipper-

Ryan Ingram ryani.spam at gmail.com
Fri Oct 10 04:57:07 EDT 2008

I was surprised to find there was no simple zipper for [] on hackage,
so I made one:


( had a dumb bug where I switched right and left!)

Example in ghci:

Prelude Data.List.Zipper> let z = fromList [1,2,3]
Prelude Data.List.Zipper> toList (replace 5 $ right z)

  -- ryan

More information about the Haskell mailing list