-
The enums in Swift, Rust and Scala (case class) can have values and it can be unwrapped by pattern matching.
```swift
// swift
enum Command {
jump
run(velocity: Int)
punch(target: …
-
If we have this esample: rock-paper-scissors game
enum Sign = {PAPER, SCISSORS, ROCK}
enum Result = {WINFIRST, WINSECOND, PARI}
static playResult (u in Sign, p in Sign) -> Result always if (u=p) the…
-
### Review Mojo's priorities
- [X] I have read the [roadmap and priorities](https://docs.modular.com/mojo/roadmap.html#overall-priorities) and I believe this request falls within the priorities.
###…
-
The Ramda team has decided that this library is no longer serving the JavaScript FP community well. It has not kept up with changes to the Fantasy Land spec, and many of the data types lack useful fea…
-
Based on the exmaple_notebook, I noticed that the lca_algebraic has treated all defined parameters as Project parameters. I have a foreground database in excel, parameterized, importable to bw, in the…
-
In the process of trying to satisfy a mode transformation on a sum algebraic type, I've run into a curious compiler error. If I create a discriminated union with both existential and universally type…
-
m2ym updated
10 years ago
-
# Typed Scalars
Some time before i started writing subset language of GQL (with name [iris](https://github.com/iris-qraphql/iris-js)) which would take best parts of GQL and simplify and generalize …
-
The type would have similar status to the `Integer` type where it would be mostly used for writing specifications rather than generating code. It would enable to us to interface with the correspondin…
-
Dear Rubi Team,
I started a port of Rubi to Maxima, which is based on the idea of the late Albert Rich to automatically convert the rule base to a decision tree - which should then be easily portab…