From f789d668f8c7f543397dcc4da29fea4633b7ef26 Mon Sep 17 00:00:00 2001 From: Chris Myers Date: Sun, 23 Feb 2014 19:58:54 +1100 Subject: [PATCH] Formatting and comments --- src/main/javascript/monet.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/javascript/monet.js b/src/main/javascript/monet.js index 02b9179..d185b63 100644 --- a/src/main/javascript/monet.js +++ b/src/main/javascript/monet.js @@ -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." } @@ -251,7 +251,6 @@ }) return new NEL(list.head(), list.tail()) - }, head: function () {