-
Basically, there are two types of pattern matching techniques that we want to cover:
1. Destructuring ADTs and lists (and especially user-defined datatypes
2. Other techniques for pattern matching…
-
I would find it useful to have a function that allows searching the contents of the diff of a commit. There are already built-in functions for searching by author name, email, etc., and searching file…
-
Hi,
I would like to implement a method in Dart, something like the following:
```dart
int nullFirstCompare(T? a, T? b) {
return switch ((a, b)) {
(null, null) => 0,
(null, _) => -…
-
Combining two related issues here. Please let me know if that is not fine, will create separate issues.
## Issue 1: Path values are not correct
*Endpoint*: `/payments/{id: [0-9]{4}}*`
*Reques…
-
I would like to contribute to the above problem. It will contain the full implementation of a trie class.
-
The basic idea is to have a syntax similar to this:
```
(
["foo", $bar] -> $bar.value * 2,
[$first, {"baz": $value}] -> [$value, $first],
$value, $value >= 3.14 -> "Bigger than 3.14",
…
-
Classes should support the PEP 622 Structural Pattern Matching feature of Python 3.10. From [reading the PEP](https://www.python.org/dev/peps/pep-0622/#runtime) it seems this should be rather simple,…
-
This should be a compile-time error:
```
let x = match None
case (Some x) = x
console.log x
```
The match is partial.
Currently the above code outputs `undefined`.
-
``` javascript
var m = match([
['Cons(a, Cons(b, Nil)) if(a === b)', function(x, y) {
return x + y;
}],
['_', function() {
return 0;
}]
]);
…
-
Hi,
since the pattern ELB_ACCESS_LOG will fail to match some special cases for ELB Access Logs (e.g. TCP Listener Logs) I built an optimized version:
```
"%{TIMESTAMP_ISO8601:timestamp} %{NOTSPACE:e…