reductio 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/reductio.rb +12 -0
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a52f221bccf1506d4e1d4c70fe3a7292167f365d
4
- data.tar.gz: 8519f76da359e3ce05507fa3835fb62e2efb638b
3
+ metadata.gz: 4a9bbf36397a80b862d96a9bd808dfdc81ae2f26
4
+ data.tar.gz: b7c826e6f9532137a4f60a5c6e078fea151d96fb
5
5
  SHA512:
6
- metadata.gz: 3119e0914e04b5afeefcf8687fee9d5420718cfc40f73030e5844e17a09bc2d1db337d78067a86b1b70f81693a8cfc07d75c3064ad1b1b1100189962ace11ecc
7
- data.tar.gz: 46d47f9d60bbb2d03a5e19031863291f8c010aab50092aec1d987b0ad8c26bdc1ef5b6419005331dd2019a85f8f4b3c10e78b29591e2b6083b17c3e4a4882891
6
+ metadata.gz: e8cdca87326a50552abc7018bd71a8d410e7c4d089122b58c423e9c4631091dae43493e123fb0f850669d81b92e8631227ed4a94e0cad6e6638e9e123ea86aab
7
+ data.tar.gz: 239f14a47795c9b240921b85859bf519f3697678cfe4391a98812549a3ada788d9e58fee526732eb14afc089708b56397b7dd150173d51804caa97570635b10d
@@ -2,4 +2,16 @@ module Reductio
2
2
  Add = proc { |x, y|
3
3
  x + y
4
4
  }.curry
5
+
6
+ Compose = proc { |*funcs|
7
+ funcs.reduce { |x, y|
8
+ proc { |*args|
9
+ x.(y.(*args))
10
+ }
11
+ }
12
+ }
13
+
14
+ Map = proc { |function, mappable|
15
+ mappable.map(&function)
16
+ }.curry
5
17
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reductio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cassandra Cruz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-02 00:00:00.000000000 Z
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: Reductio is a functional programming library imspired by the interfaces
13
+ description: Reductio is a functional programming library inspired by the interfaces
14
14
  of Ramda, an FP library for Javascript
15
15
  email: celkamada@gmail.com
16
16
  executables: []
@@ -28,17 +28,17 @@ require_paths:
28
28
  - lib
29
29
  required_ruby_version: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  required_rubygems_version: !ruby/object:Gem::Requirement
35
35
  requirements:
36
- - - '>='
36
+ - - ">="
37
37
  - !ruby/object:Gem::Version
38
38
  version: '0'
39
39
  requirements: []
40
40
  rubyforge_project:
41
- rubygems_version: 2.0.14
41
+ rubygems_version: 2.4.8
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: 'Reductio: a functional library for Ruby'