Last active
March 12, 2023 18:29
-
-
Save matarillo/b1d9ec8bb16627288b2c33917f3e5130 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Polynominal<'a>(x : 'a) = | |
static member op_Implicit (x : 'a) = Polynominal x | |
type Rational<'a>(x : 'a) = | |
class end | |
let x : Rational<Polynominal<float>> = Rational 1.0 | |
printfn "%A" x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generic Mathにからめて、こういうコードの方が良かっただろうか