parity_prop 0.0.1

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.rb +5 -0
  3. metadata +42 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e9867e481b9593b4751ac33e27138990bdc2d9caa36c13cf9909b7776f44fc50
4
+ data.tar.gz: 29c813b239d1800c594ee3f5bbdcaf48dc63fa2c031712ad94c44d4604e64f70
5
+ SHA512:
6
+ metadata.gz: 1d5a2b9db8754ab5a4808bfa7611e60869f1de9a63296ec479457639bc8d39bb958d731e42c302dbdb2172fe1c57c70cb302e00b558b47ad4dd65c49f10629c3
7
+ data.tar.gz: e31534a1142859946b3ec3fca60ee617fe539f87b3f8111c731e80300557ddcc45b3c355d09056cac94b57ec4b08ef3d124bf4c56d76ac0a0c299cb77a5f71cb
@@ -0,0 +1,5 @@
1
+ class Array
2
+ def split_by_parity
3
+ partition(&:even?)
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,42 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parity_prop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Collin Jilbert
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-10-04 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.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.3.7
39
+ signing_key:
40
+ specification_version: 4
41
+ summary: A gem to partition an array of integers based on parity
42
+ test_files: []