Skip to content

Commit

Permalink
Update ch8.md
Browse files Browse the repository at this point in the history
The result is Maybe of nested array, not just array. Here look: http://plnkr.co/edit/08qaFHro9onCy0kHL9TW.
  • Loading branch information
Karen Grigoryan committed Oct 11, 2015
1 parent ec4a672 commit 7bf9d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch8.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ var findParam = function(key) {

// run it by calling __value()!
findParam("searchTerm").__value();
// Maybe(['searchTerm', 'wafflehouse'])
// Maybe([['searchTerm', 'wafflehouse']])
```

Our library keeps its hands clean by wrapping `url` in an `IO` and passing the buck to the caller. You might have also noticed that we have stacked our containers; it's perfectly reasonable to have a `IO(Maybe([x]))`, which is three functors deep[^`Array` is most definitely a mappable container type] and exceptionally expressive.
Expand Down

0 comments on commit 7bf9d1a

Please sign in to comment.