totally_lazy 0.1.42 → 0.1.43

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjQwNzc5MDVjYmQwNjJkY2RkODM3YmM3NjdmYTU2MTMyM2FhNjU5OA==
4
+ NDEyYjgxYzJmODdjODYwNjAxNzhjYzIwZjgwYjk4NzJiMzE2ZDQ3MA==
5
5
  data.tar.gz: !binary |-
6
- YzNlMjk2MzU4M2NjZDg2N2NjZmMzZWFjZjBhMjRlNTI1NzA0YTZkYg==
6
+ MTllYWU0ODRkNTQ3NjlkMTJlNGRmYjI5ZTBiZjlkMmI4NDNiNDVhMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjU5N2JlMDM4NTM4MGE0YzA3NDQ5NzRkZWExZjM1MDcwZTA5NGNiODM5MDU5
10
- MjE5OTk5NDk4OWQzOTY5MWM2Y2VmMmVkMzFmZDJjMTU1YWNmNDdkNDU5YmZm
11
- MDk5ZGRmMWE3YmRiZTVkN2U5NTQyYmQyMzA2OTVkOWRhMDI3YTc=
9
+ ZjJiM2MxYzI0YjJmNWE3M2I3NmNjMTMyOGQwNWE0MjdmMDcyMDE5ZTE5N2Ix
10
+ MTA4NDk3NWZlNDkxODMyODAyM2IzYmQzYmRkYzRmYWZmZGQ5MDRjNmVmNWU3
11
+ MjBlMDZjYWZjMzgxMjE5Yjk2ZGY5OGE2MTJiZGVlOTMzMDJiNGI=
12
12
  data.tar.gz: !binary |-
13
- NTA2NDJmOTJkYWUyNTUzMDAxNjU1Njc5NjI4Y2RkN2I5NmE1ZTUzNTFlOTZj
14
- NzNiNTg3MjViMGM1NmFkYzU4OGYwZjdjNDc5ZTgzYjRhMmJkNzcxYzk4OGYy
15
- OTRmODBhYWNiOGRjZDE3ZGVhOWNhOTFhZjZlZDE5ZmFhZDkzOGQ=
13
+ ZmE1Y2JhZWQ2MjAxNTJjM2UzYjcwMzc4ZWExMjRmMjA1MjJjMDc5ZGZlNjlh
14
+ N2YwMDgxYjRjNTFhNTE0OWNmZWFjOTY3OGZkMjliNDlmOTA1Zjg1M2YyNjQz
15
+ NTgyYThhMTBlYzA2MDk5MDNhZmMwMTAzYTRkMTAwY2I5ZjlmYmE=
@@ -69,10 +69,6 @@ class Left < Either
69
69
  raise NoSuchElementException.new
70
70
  end
71
71
 
72
- def map_lr(fn_left, fn_right)
73
- fn_left.(@value)
74
- end
75
-
76
72
  def map_left(fn=nil, &block)
77
73
  assert_funcs(fn, block_given?)
78
74
  left(block_given? ? block.call(@value) : fn.(@value))
@@ -122,10 +118,6 @@ class Right < Either
122
118
  right(block_given? ? block.call(@value) : fn.(@value))
123
119
  end
124
120
 
125
- def map_lr(fn_left, fn_right)
126
- fn_right.(@value)
127
- end
128
-
129
121
  def map_left(fn=nil, &block)
130
122
  assert_funcs(fn, block_given?)
131
123
  self
@@ -25,8 +25,6 @@ describe 'Either' do
25
25
  it 'should support map' do
26
26
  expect(right(3).map(add(2))).to eq(right(5))
27
27
  expect(right(3).map { |a| a+2 }).to eq(right(5))
28
- expect(left(3).map_lr(add(2), nil)).to eq(5)
29
- expect(right(3).map_lr(nil, add(2))).to eq(5)
30
28
  end
31
29
 
32
30
  it 'should support map_left' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: totally_lazy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.42
4
+ version: 0.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raymond Barlow