funcify 0.4.26 → 0.4.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a802d419c55532be00bd3aac6491b5ae824cf95dfee083a4ded89db6d5c3278
4
- data.tar.gz: 909ce08211e7fb483a008c70c7f9801c9801254a9b0d0fb985b105d813d3d67f
3
+ metadata.gz: 8ab31889eecadc15ca41dfddb6ec5b7f1c7999ec50fb52f5c46a093c37730f63
4
+ data.tar.gz: f53970d84fbb4b4d1ce1926360c6bb5285add10e991a504e37ac9c2e38870b0d
5
5
  SHA512:
6
- metadata.gz: 6c4dfdfd1c48f01279da4888bcc6eb65587c3f8740b0a10731b76fb5012ff8bddaa45e9fbbca32822ea8a31ff26cf0c4b8d82d72043db19d974e667ad046b683
7
- data.tar.gz: e2f0bf5f99c94eea576b576e59c187329285180c6993c15c08359da23a3186e0088e1865ef7fd71337ef3847800aa5dc30d1857993ccbdad644b399b42fb92e3
6
+ metadata.gz: 5e3dce3321240171fecf45adadb7fe6e7b9073a16d986b881d9e5f0545cf3d2b2fac073447533777c14a64aedf4493b645046a791e143a025a9c2042803f25bd
7
+ data.tar.gz: 84453a81edf167a8692c47da1884921638c8f2d313bc7895675e09d2ec7a3e3ccdd957c2c27210202785257905bc07ada516dc67c5b7903389a26349835bfaf5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- funcify (0.4.25)
4
+ funcify (0.4.27)
5
5
  dry-monads (~> 1.0)
6
6
 
7
7
  GEM
data/lib/funcify/map.rb CHANGED
@@ -31,6 +31,9 @@ module Funcify
31
31
  -> f, ms { ms.find {|k,v| f.(k,v) } }.curry
32
32
  end
33
33
 
34
+ def keep_if
35
+ -> f, ms { ms.keep_if {|k,v| f.(k,v) } }.curry
36
+ end
34
37
 
35
38
  def equality
36
39
  -> field, test_value, i {
@@ -1,3 +1,3 @@
1
1
  module Funcify
2
- VERSION = "0.4.26"
2
+ VERSION = "0.4.27"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funcify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.26
4
+ version: 0.4.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Col Perks
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-07 00:00:00.000000000 Z
11
+ date: 2021-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-monads