Bend/tests/snapshots/encode_pattern_match__adt_tup_era.bend.snap

20 lines
440 B
Plaintext
Raw Permalink Normal View History

2024-01-12 20:48:30 +03:00
---
source: tests/golden_tests.rs
input_file: tests/golden_tests/encode_pattern_match/adt_tup_era.bend
2024-01-12 20:48:30 +03:00
---
Scott
(Foo) = λa (a λb λc (b λd λ* λ* d c))
2024-05-10 22:42:32 +03:00
(Main) = (Foo (Tuple/Pair 1 5))
2024-05-10 22:42:32 +03:00
(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