Changes between Version 44 and Version 45 of ViewPatterns


Ignore:
Timestamp:
Oct 18, 2012 8:15:11 PM (3 years ago)
Author:
SlowByte
Comment:

fix example

Legend:

Unmodified
Added
Removed
Modified
  • ViewPatterns

    v44 v45  
    240240View patterns permit programming in an iterator style, where you name the result of a recursive call but not the term the call was made on.  E.g.:
    241241{{{
    242    length [] = []
    243    length (_ : length -> xs) = 1 + xs
     242   length [] = 0
     243   length (_ : length -> n) = 1 + n
    244244   
    245245   map f [] = []