rudash_fp 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/map.rb +10 -0
  3. data/lib/rudash_fp.rb +6 -0
  4. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3e0f4963349e1f8933b9b9eb1e7bc23272f8bf2349cd6e857afb695975485861
4
+ data.tar.gz: bf99533d7a20270d26e5255bb4ed739eaf0ce519d1d794ca8c00a7bd39c384b7
5
+ SHA512:
6
+ metadata.gz: f4ab88183c3b48a4adbd8ee860f053526f696b94753f7710079a8a27827bd46eb0a6f815523cad8ca68def37b3c9eec54934028bc27b7bf0139f1ed4c1c903dc
7
+ data.tar.gz: 93570d6ac63cd027878fe72421e8e0ee8b165fe04ff92494e7635920791a75be4edca16bf0632b7a00533d694dfc4821d894eea33730cde396ebb1b48a0c44d8
data/lib/map.rb ADDED
@@ -0,0 +1,10 @@
1
+ module Map
2
+ def map
3
+ mapProc = -> (mapperFn, array) {
4
+ array.map { |value| mapperFn[value] }
5
+ }
6
+
7
+ mapProc = mapProc.curry
8
+ mapProc
9
+ end
10
+ end
data/lib/rudash_fp.rb ADDED
@@ -0,0 +1,6 @@
1
+ $LOAD_PATH << '.'
2
+ require 'map.rb'
3
+
4
+ class RudashFp
5
+ extend Map
6
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rudash_fp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Islam Attrash
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-07-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/map.rb
20
+ - lib/rudash_fp.rb
21
+ homepage:
22
+ licenses: []
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.7.8
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: rudash_fp is the best functional utility ever
44
+ test_files: []