Use this tag for questions about testing whether a data structure has a particular shape or contains particular values in certain locations.
Given this Person case class: scala> case class Person(name: String, age: Int) {} defined class Person ... and this instance …
scala pattern-matchingI'd like to write a utility function/module that'll provide simple wildcard/glob matching to strings. The reason I'm not …
ruby pattern-matching glob string-matchingI am trying to match the beginning of strings in f#. Not sure if I have to treat them as …
f# pattern-matchingI found myself writing something like this quite often: a match { case `b` => // do stuff case _ => // do nothing } …
scala pattern-matchingI need a pattern that will traverse the document and get me all links that have mailto in their href: &…
jquery pattern-matching mailtowhat is wrong in this piece of code? (Left("aoeu")) match{case Right(x) => ; case Left(x) => } <…
scala pattern-matching scala-2.8I'm coding in SML for an assignment and I've done a few practice problems and I feel like I'm missing …
functional-programming pattern-matching case smlI'm playing around with pattern match and I found out, that it's not quite easy to pattern match parameters of …
pattern-matching elixirI am currently learning about pattern matching algorithms and have come across these two algorithms. I have the following general …
algorithm pattern-matching boyer-moore knuth-morris-prattI want to match on some case classes. If I don't know them, I want to match on a specified …
scala pattern-matching traits case-class