rb-kgy-fp 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rb-kgy-fp/typeclass/maybe.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3697ca15bcf22fea89e6e2621f8165abf24edb989a0fb5269755834c9809dab0
|
4
|
+
data.tar.gz: 14ed08760f9c239697eb33a4461b561753bb207da4ad94d6a4dec6376a92c989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9097a06a37b571fc51befabb6adb786fb5daf27cdde571690d01400955435e1e2e4214194235148da51370d218d484f5ee35015ec854133056288c777ea96c0c
|
7
|
+
data.tar.gz: 33e72b36d9f8a247386aea220afafdc11cc72c12c42f08b70c766e72b401ee480c77fe2e3a6c93ba3b5de6fceb9979a08e97ae26c5db6477a21b68acf3fe0670
|
@@ -33,7 +33,7 @@ class Maybe
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.empty
|
36
|
-
Nothing.
|
36
|
+
Nothing.instance
|
37
37
|
end
|
38
38
|
|
39
39
|
def consume(other)
|
@@ -70,7 +70,7 @@ class Just < Maybe
|
|
70
70
|
if other.just?
|
71
71
|
of fn.(@value, other.value)
|
72
72
|
else
|
73
|
-
Nothing.
|
73
|
+
Nothing.instance
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|