This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.
- Haskell is a functional programming language.
// flatten a tree of arbitrary depth and complexity | |
class WalkableTree { | |
constructor(data) { | |
this.data = data | |
} | |
*[Symbol.iterator]() { | |
for (let value of this.data) { | |
if (Array.isArray(value)) { |
This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.