Quantcast
Channel: Day to day stuff
Viewing all articles
Browse latest Browse all 83

Why Functional Programming Matters - An exploration of functional Scala - Part 2

$
0
0
package nl.grons.whyfp import scala.math.abs /** A translation of Miranda examples in chapter 4 of the paper Why Functional Programming Matters by John Hughes, 1984. This article is the continuation of part 1 - Chapter 3 examples. I will show you lazy evaluation and how this can be useful. @author Erik van Oosten */ object Chapter4_LazyList { /* Chapter 4’s examples make

Viewing all articles
Browse latest Browse all 83

Trending Articles