Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Ryan Ingram <ryani.spam <at> gmail.com>
Subject: ANNOUNCE: ListZipper-1.1.0.0
Newsgroups: gmane.comp.lang.haskell.general
Date: Friday 10th October 2008 08:57:07 UTC (over 8 years ago)
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
 
CD: 3ms