Skip to content

Commit

Permalink
Formatting and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Myers committed Feb 23, 2014
1 parent dd17202 commit f789d66
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/javascript/monet.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@

/*
* Non-Empty List monad
* This is also a comonad because there exists the implementation of extract, which is just head
* This is also a comonad because there exists the implementation of extract(copure), which is just head
* and cobind and cojoin.
*
*/


var NEL = window.NEL = function (head, tail) {
var NEL = window.NEL = NonEmptyList = window.NonEmptyList = function (head, tail) {
if (head == undefined || head == null) {
throw "Cannot create an empty Non-Empty List."
}
Expand Down Expand Up @@ -251,7 +251,6 @@
})

return new NEL(list.head(), list.tail())

},

head: function () {
Expand Down

0 comments on commit f789d66

Please sign in to comment.