2023-11-29 20:45:52 +03:00
|
|
|
---
|
|
|
|
source: tests/golden_tests.rs
|
2024-05-15 01:25:46 +03:00
|
|
|
input_file: tests/golden_tests/encode_pattern_match/non_matching_fst_arg.bend
|
2023-11-29 20:45:52 +03:00
|
|
|
---
|
2024-05-18 15:01:20 +03:00
|
|
|
Scott
|
2024-03-28 00:19:15 +03:00
|
|
|
(Foo) = λa λb (b λc let {c c_2} = c; (Foo c c_2) λd d a)
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(bool/true) = λa λ* a
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(bool/false) = λ* λb b
|
2024-05-18 15:01:20 +03:00
|
|
|
|
|
|
|
NumScott
|
|
|
|
(Foo) = λa λb (b λc switch c { 0: λd let {d d_2} = d; (Foo d d_2); _: λ* λe e; } a)
|
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(bool/true) = λa (a bool/true/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(bool/false) = λa (a bool/false/tag)
|
|
|
|
|
|
|
|
(bool/true/tag) = 0
|
|
|
|
|
|
|
|
(bool/false/tag) = 1
|