This repository was archived by the owner on Oct 4, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +55
-33
lines changed Expand file tree Collapse file tree 4 files changed +55
-33
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "bitwise" : true ,
3
+ "eqeqeq" : true ,
4
+ "forin" : true ,
5
+ "freeze" : true ,
6
+ "funcscope" : true ,
7
+ "futurehostile" : true ,
8
+ "globalstrict" : true ,
9
+ "latedef" : true ,
10
+ "maxparams" : 1 ,
11
+ "noarg" : true ,
12
+ "nocomma" : true ,
13
+ "nonew" : true ,
14
+ "notypeof" : true ,
15
+ "singleGroups" : true ,
16
+ "undef" : true ,
17
+ "unused" : true ,
18
+ "eqnull" : true
19
+ }
Original file line number Diff line number Diff line change 30
30
"purescript-either" : " ~0.2.0" ,
31
31
"purescript-tuples" : " ~0.4.0" ,
32
32
"purescript-integers" : " ~0.2.1"
33
+ },
34
+ "devDependencies" : {
35
+ "purescript-console" : " ~0.1.0"
33
36
}
34
37
}
Original file line number Diff line number Diff line change 2
2
"private" : true ,
3
3
"scripts" : {
4
4
"postinstall" : " pulp dep install" ,
5
- "build" : " jshint src && jscs src && pulp test && rimraf docs && pulp docs"
5
+ "build" : " jshint src && pulp test && rimraf docs && pulp docs"
6
6
},
7
7
"devDependencies" : {
8
- "jscs" : " ^1.13.1" ,
9
8
"jshint" : " ^2.8.0" ,
10
9
"pulp" : " ^4.0.1" ,
11
10
"rimraf" : " ^2.4.1"
Original file line number Diff line number Diff line change 8
8
// Zipping ---------------------------------------------------------------------
9
9
//------------------------------------------------------------------------------
10
10
11
- exports . zipAll = function ( f ) {
12
- return function ( xs ) {
13
- return function ( ys ) {
14
- var l = xs . length < ys . length ? xs . length : ys . length ;
15
- var result = true ;
16
- for ( var i = 0 ; i < l ; i ++ ) {
17
- if ( ! f ( xs [ i ] ) ( ys [ i ] ) ) {
18
- return false ;
19
- }
20
- }
21
- return true ;
11
+ exports . zipAll = function ( f ) {
12
+ return function ( xs ) {
13
+ return function ( ys ) {
14
+ var l = xs . length < ys . length ? xs . length : ys . length ;
15
+ for ( var i = 0 ; i < l ; i ++ ) {
16
+ if ( ! f ( xs [ i ] ) ( ys [ i ] ) ) {
17
+ return false ;
18
+ }
19
+ }
20
+ return true ;
21
+ } ;
22
22
} ;
23
- } ;
24
23
} ;
25
24
26
- exports . zipCompare = function ( f ) {
27
- return function ( xs ) {
28
- return function ( ys ) {
29
- var i = 0 ;
30
- var xlen = xs . length ;
31
- var ylen = ys . length ;
32
- while ( i < xlen && i < ylen ) {
33
- var o = f ( x ) ( y ) ;
34
- if ( o !== 0 ) { return o }
35
- i ++ ;
36
- }
37
- if ( xlen === ylen ) {
38
- return 0
39
- } else if ( xlen > ylen ) {
40
- return - 1 ;
41
- } else {
42
- return 1 ;
43
- }
25
+ exports . zipCompare = function ( f ) {
26
+ return function ( xs ) {
27
+ return function ( ys ) {
28
+ var i = 0 ;
29
+ var xlen = xs . length ;
30
+ var ylen = ys . length ;
31
+ while ( i < xlen && i < ylen ) {
32
+ var o = f ( xs [ i ] ) ( ys [ i ] ) ;
33
+ if ( o !== 0 ) {
34
+ return o ;
35
+ }
36
+ i ++ ;
37
+ }
38
+ if ( xlen === ylen ) {
39
+ return 0 ;
40
+ } else if ( xlen > ylen ) {
41
+ return - 1 ;
42
+ } else {
43
+ return 1 ;
44
+ }
45
+ } ;
44
46
} ;
45
- } ;
46
47
} ;
You can’t perform that action at this time.
0 commit comments