Use this tag for questions about testing whether a data structure has a particular shape or contains particular values in certain locations.
Following is the code that doesn't work but it describes what I want to do. Could you please recommend the …
scala pattern-matchingI am running Ruby on Rails 3.0.10 and Ruby 1.9.2. I am using the following Regex in order to match names: NAME_…
ruby-on-rails ruby regex ruby-on-rails-3 pattern-matchingIs there a way to generate a number sequence in vi or Vim? For example, for an arbitrary range of …
vim pattern-matching vi sequentialI am reading about KMP for string matching. It needs a preprocessing of the pattern by building a prefix table. …
string algorithm data-structures pattern-matchingTake the following function: def fMatch(s: String) = { s match { case "a" => println("It was a") case _ => println("…
scala pattern-matching matchI want to apply filter on an iterator and I came up with this one and it works, but it's …
enums pattern-matching rustI have a basic understanding in image processing and now studying in-depth the "Digital Image Processing" book by Gonzales. When …
image-processing pattern-matching computer-vision pattern-recognitionI want to do some pattern matching on lists in Python. For example, in Haskell, I can do something like …
python functional-programming pattern-matchingI find myself writing code like the following: val b = a map (entry => entry match { case ((x,y), u) =&…
scala pattern-matchingI want to create a more complex object type List from a simple type List. Eg, List[String] => List[…
list scala pattern-matching