[Haskell] ANNOUNCE: ListZipper-1.1.0.0

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:

   http://hackage.haskell.org/cgi-bin/hackage-scripts/package/ListZipper-1.1.0.0

(1.0.0.0 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)
[1,5,3]

  -- ryan


More information about the Haskell mailing list