parity_prop_7776 0.0.2

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 +7 -0
  2. data/lib/parity_prop_7776.rb +5 -0
  3. metadata +43 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 81dc227a65e9a6f2e65bd330ee76a44b553dc6d0fb5b3c0c7a8ad16a8e16e13a
4
+ data.tar.gz: 1bb9a25e0d66f71c198324109a7c2705c4e0a93e46f59b44016f73850d156464
5
+ SHA512:
6
+ metadata.gz: 4595cb717164f99744e7cec78f6cd7165c2e1ae6b8b05a0876ae06e87c591ca92c07810d9e1b89a3f5fdb5acc2a4e431829e50899e095346a523539903311de0
7
+ data.tar.gz: 724bcc56164e74a0842586995d2de4028eb7f46d96c14458935e030bf5cbdc936c6ad6a667b93b17b70a40818ed0f600f7b2470af4dd8bbbf716391cfc443244
@@ -0,0 +1,5 @@
1
+ class Array
2
+ def slipt_by_parity
3
+ partition(&:even?)
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,43 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parity_prop_7776
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Misha Push
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple parity_prop gem to slipt array by parity
14
+ email: vmisha7776@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/parity_prop_7776.rb
20
+ homepage: https://rubygems.org/gems/hola
21
+ licenses:
22
+ - MIT
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
+ rubygems_version: 3.5.4
40
+ signing_key:
41
+ specification_version: 4
42
+ summary: A gem to partition array of intergers by parity
43
+ test_files: []