Improve smnp.math and smnp.collection modules

This commit is contained in:
2020-03-25 20:25:44 +01:00
parent 3a3148d907
commit d4577fa4b6
4 changed files with 10 additions and 22 deletions

View File

@@ -99,4 +99,8 @@ extend list {
function shuffle() {
return shuffle(this);
}
function countBy(value) {
return (this as item ^ item % item == value).size;
}
}