Use this tag for questions about testing whether a data structure has a particular shape or contains particular values in certain locations.
In scala.util.matching.Regex trait MatchData I see that there support for groupnames , I thought that this was related …
regex string scala pattern-matching capturing-groupIn Ruby I can write this: case n when 0...5 then "less than five" when 5...10 then "less than ten" else "a …
scala pattern-matching rangeTrying out fish shell, so I'm translating my bash functions. The problem is that in one case, I'm using bash …
regex linux unix pattern-matching fishI have been trying to explain the difference between switch statements and pattern matching(F#) to a couple of people …
f# pattern-matching ocaml smlis there a way to print out lookahead portion of a regex pattern in java? String test = "hello world this …
java regex pattern-matching regex-lookaroundsI'm having problems finding the answer here, on google or in the docs ... I need to do a case insensitive …
sql postgresql pattern-matching case-insensitiveI'm trying to use pattern matching to write a calculator application. Two major types defined as below: type key = Plus | …
types pattern-matching ocaml recordval x = for(i <- 1 to 3) yield i x match { case 1 :: rest => ... // compile error } constructor cannot be instantiated …
scala pattern-matching for-comprehensionRecently I've saw the WWDC 2015 keynote from Apple. I also looked at some documentation but I can't find a "pattern …
swift if-statement syntax pattern-matching swift2This is not a homework question, rather an exam study guide question. What is the difference between pattern matching in …
haskell prolog pattern-matching