This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Source code for Huet's Zipper in github

No replies
Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Dear Scalarazzi,
i've put the source code for the tranlisteration to Scala of Huet's original functional pearl on the zipper up on github, including the generic and navigation functions. Below i've included a trace of one of the tests.
Best wishes,
--greg
Welcome to Scala version 2.8.0.RC2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_17).Type in expressions to have them evaluated. Type :help for more information.
scala> import com.biosimilarity.validation.zipper._import com.biosimilarity.validation.zipper._import com.biosimilarity.validation.zipper._
scala> import Exercise._import Exercise._import Exercise._
scala> doMutationdoMutation***********************************   Leaf : c1  Leaf : -  Leaf : c2**********************************************************************    Leaf : c1    Leaf : -    Leaf : c2   Leaf : *  Leaf : d**********************************************************************    Leaf : a    Leaf : *    Leaf : b  Leaf : +       Leaf : c1      Leaf : -      Leaf : c2    Leaf : *    Leaf : d***********************************
scala> 
On Tue, May 25, 2010 at 11:22 AM, Meredith Gregory <lgreg.meredith@gmail.com> wrote:
Dear Scalarazzi,
i've cobbled together a basic blog post transliterating into Scala Huet's original functional pearl on the Zipper. Feedback most welcome.
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland