parity_prop_m 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/parity_prop_m.rb +5 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 841fc12037ca5f4a55f75afbf361d2940296ac38f0ac1bef9cfa0ab5f90475f6
4
+ data.tar.gz: 0b3bc27869d65e1fa7e16254b7a785eaf285ebd63913d432662365775b014592
5
+ SHA512:
6
+ metadata.gz: 1001ec6bc26c3a6649dd3a32ada1ca28ee6f7580c6069ba6e2b299a87849ed097d696f8dedbd62d41bffc6ca03ff57e3f39ccf8bb12c973a22005597191d7732
7
+ data.tar.gz: 8edb48eb362c7fd437be011c247b94478a36e41cd89b0b4534d6e586aa229a63720296a8805530429fff02f7b13c1bef9c70e770925b5eeb2c31a461b6c0288f
@@ -0,0 +1,5 @@
1
+ class Array
2
+ def split_by_partition
3
+ partition(&:even?)
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parity_prop_m
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Maria Sut
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-11-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/parity_prop_m.rb
20
+ homepage:
21
+ licenses: []
22
+ metadata: {}
23
+ post_install_message:
24
+ rdoc_options: []
25
+ require_paths:
26
+ - lib
27
+ required_ruby_version: !ruby/object:Gem::Requirement
28
+ requirements:
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ required_rubygems_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ requirements: []
38
+ rubygems_version: 3.0.8
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: A gem to partition on array of integers based on parity
42
+ test_files: []