Registry / utility / pattern-match

pattern-match

JSON →
library1.1.0rbrubygemsunverified

A pattern matching library for Ruby.

gem install pattern-match
INSTALL
IMPORT
SIG · PATTERN-MATCH
P
pattern-match
utilityrubyv1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PatternMatch
require 'pattern-match'

Pattern match on an array

require 'pattern-match' include PatternMatch match([1, 2, 3]) do with(_[a, b, c]) { a + b + c } end
Debug
Known issues
gotchaMay conflict with Ruby's built-in pattern matching (Ruby 2.7+)
fix
Use fully qualified calls or avoid using both simultaneously
affects: >= 1.0.0
Upgrade
Version history
1.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
pattern-match — gem install pattern-match · libregistry