mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-17 13:27:30 +03:00
13 lines
191 B
Plaintext
13 lines
191 B
Plaintext
|
|
(|>) : a -> (a -> b) -> b
|
|
a |> f = f a
|
|
|
|
ex1 = "bob" |> (Text.++) "hi, "
|
|
|
|
structural type Woot = Woot Text Int Nat
|
|
|
|
ex2 = match 0 |> Woot "Zonk" +10 with
|
|
Woot.Woot _ i _ -> i
|
|
|
|
> (ex1, ex2)
|