mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-10-26 05:50:18 +03:00
20 lines
440 B
Plaintext
20 lines
440 B
Plaintext
---
|
|
source: tests/golden_tests.rs
|
|
input_file: tests/golden_tests/encode_pattern_match/adt_tup_era.bend
|
|
---
|
|
Scott
|
|
(Foo) = λa (a λb λc (b λd λ* λ* d c))
|
|
|
|
(Main) = (Foo (Tuple/Pair 1 5))
|
|
|
|
(Tuple/Pair) = λa λb λc (c a b)
|
|
|
|
NumScott
|
|
(Foo) = λa (a λb switch b { 0: λc λd (c λe switch e { 0: λf λ* λ* f; _: *; } d); _: *; })
|
|
|
|
(Main) = (Foo (Tuple/Pair 1 5))
|
|
|
|
(Tuple/Pair) = λa λb λc (c Tuple/Pair/tag a b)
|
|
|
|
(Tuple/Pair/tag) = 0
|