parity_prop_edu 0.0.1

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_.rb +7 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1214dab746a15b986b0ca867ce3cef22f55ce2d4f8ca102361a0ce30f8863845
4
+ data.tar.gz: 27d94369fd6eb720245ae597b14b9a984f5f52ad3ac07752d086112a8d7dff8b
5
+ SHA512:
6
+ metadata.gz: 5add64434ba76b3c2c95a894c6c6d60118b74a835a9f38af39e66034d25807126c242765c5f9a57fd39ed2988b2e473ad502e88c88e75d42896faa70e8b053e9
7
+ data.tar.gz: 47213012a7ae766713adb47e0e8baa1f5ef424b9620876566af63bba20d077eebf7f8f1c5d1a0e3cdef8be398d167d2df7410968ac9000bd61631167e8253981
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class Array
4
+ def split_by_parity
5
+ partition(&:even?)
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: parity_prop_edu
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Talaat Magdy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-12-02 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Much longer explanation of the example!
14
+ email: talaatmagdy75@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/parity_prop_.rb
20
+ homepage: https://rubygems.org/gems/example
21
+ licenses:
22
+ - MIT
23
+ metadata:
24
+ source_code_uri: https://github.com/example/example
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubygems_version: 3.3.26
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: A gem to partition an array of integers based on parity
44
+ test_files: []