Bend/tests/snapshots/encode_pattern_match__match_syntax.bend.snap

22 lines
423 B
Plaintext
Raw Permalink Normal View History

2024-01-15 17:40:34 +03:00
---
source: tests/golden_tests.rs
input_file: tests/golden_tests/encode_pattern_match/match_syntax.bend
2024-01-15 17:40:34 +03:00
---
Scott
2024-05-10 22:42:32 +03:00
(head) = λa (a λb λ* b List_/Nil)
2024-05-10 22:42:32 +03:00
(List_/Cons) = λa λb λc λ* (c a b)
2024-03-19 20:37:30 +03:00
2024-05-10 22:42:32 +03:00
(List_/Nil) = λ* λb b
NumScott
(head) = λa (a λb switch b { 0: λc λ* c; _: λ* List_/Nil; })
(List_/Cons) = λa λb λc (c List_/Cons/tag a b)
(List_/Nil) = λa (a List_/Nil/tag)
(List_/Cons/tag) = 0
(List_/Nil/tag) = 1