File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 33
44// module Data.Traversable
55
6+ // jshint maxparams: 3
7+
68exports . traverseArrayImpl = function ( ) {
79 function Cont ( fn ) {
810 this . fn = fn ;
911 }
1012
1113 var emptyList = { } ;
1214
15+ var ConsCell = function ( head , tail ) {
16+ this . head = head ;
17+ this . tail = tail ;
18+ } ;
19+
1320 function consList ( x ) {
1421 return function ( xs ) {
15- return { head : x , tail : xs } ;
22+ return new ConsCell ( x , xs ) ;
1623 } ;
1724 }
1825
@@ -29,12 +36,10 @@ exports.traverseArrayImpl = function () {
2936 return function ( map ) {
3037 return function ( pure ) {
3138 return function ( f ) {
32- /* jshint maxparams: 2 */
3339 var buildFrom = function ( x , ys ) {
3440 return apply ( map ( consList ) ( f ( x ) ) ) ( ys ) ;
3541 } ;
3642
37- /* jshint maxparams: 3 */
3843 var go = function ( acc , currentLen , xs ) {
3944 if ( currentLen === 0 ) {
4045 return acc ;
You can’t perform that action at this time.
0 commit comments