functions 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/functions/prelude_lambda/basic.rb +2 -2
- data/lib/functions/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWVhOTY5YzljODFlYjlkZmUxOGNkMzYzMmIwYmFkYWVlMDk0OTNlMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2EwZTU4NGU4Yzg5NDlhMDMzNWYzOTYzNzBkMDE4YjQzNmU0MzIxZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWZjMDI4NTc3MzMyN2UyNTZmN2E3ZDUxNWU5YmVhNTYyYjdjZTgxNzE0ZWE3
|
10
|
+
NWY1OTg4MTliOTZmMmU3MzNjODcxNGM4Y2Y4MWZhZTQ1NDFlMjY0ZTQxZDVi
|
11
|
+
YTU3OTg5NjM2MWU4MTU4NWQxYTFhZGZlNWVlZWVjYTliNzc1MTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTFhZjQ0ZDJhMjBmMjA1ZDVkOTE2NzYzNmRhZWM2NGZjMGRlOGUyYzZiYTYx
|
14
|
+
MTY4NTJmYmQ2OWFmMzRkNGFlMjE3MzU1YmFjMWJhMGM4ODcxYTljZDE3NmUw
|
15
|
+
OWI2OTk1NDMwNzEwYzBhNjBmYjA3ZjNiMzBjZWMzNjc5MmQ4OTk=
|
@@ -93,9 +93,9 @@ module Functions
|
|
93
93
|
|
94
94
|
Intersect = ->(as) { as.inject(:&) }
|
95
95
|
|
96
|
-
|
96
|
+
Group = ->(f,a) { a.group_by(&f) }.curry # functional friend
|
97
97
|
|
98
|
-
|
98
|
+
Partition = ->(f) { Group.(f) >= Send.(:values) } # functional friend
|
99
99
|
|
100
100
|
FromTo = ->(from) { ->(to) { Range.new(from, to) } }
|
101
101
|
|
data/lib/functions/version.rb
CHANGED