I recently had a Subversion working copy with several files that were modified because they should not have been under source control to begin with. I had to find all the modified *.Plo files and remove the folders that contained them. I ended up using this, which is the longest pipeline I can remember using:
svn [...]
Monthly Archives: March 2010
Linux pipelines
Posted March 27, 2010 – 11:13 amAdventures in Haskell – Pattern Matching
Posted March 18, 2010 – 5:11 pmSimple
Another nice feature of Haskell is pattern matching. I glossed over it in the Fibonacci function, so let’s review.
fib :: (Integral t) => t -> t
fib 0 = 1
fib 1 = 1
fib n = fib (n – 1) + fib (n – 2)
Analogous code in Java would be:
public int fib(int n) {
[...]