Skip to content

Commit

Permalink
Merge pull request #650 from sanctuary-js/davidchambers/size
Browse files Browse the repository at this point in the history
array: update return type of S.size
  • Loading branch information
davidchambers authored Sep 11, 2019
2 parents 3de3fca + c4fa0e2 commit fa582a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3024,7 +3024,7 @@
impl: dropWhile
};

//# size :: Foldable f => f a -> Integer
//# size :: Foldable f => f a -> NonNegativeInteger
//.
//. Returns the number of elements of the given structure.
//.
Expand Down Expand Up @@ -3052,7 +3052,7 @@
//. ```
_.size = {
consts: {f: [Z.Foldable]},
types: [f (a), $.Integer],
types: [f (a), $.NonNegativeInteger],
impl: Z.size
};

Expand Down
2 changes: 1 addition & 1 deletion test/size.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const eq = require ('./internal/eq');

test ('size', () => {

eq (S.show (S.size)) ('size :: Foldable f => f a -> Integer');
eq (S.show (S.size)) ('size :: Foldable f => f a -> NonNegativeInteger');

eq (S.size ([])) (0);
eq (S.size (['foo'])) (1);
Expand Down

0 comments on commit fa582a5

Please sign in to comment.