mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-08-15 14:50:42 +03:00
14 lines
402 B
Plaintext
14 lines
402 B
Plaintext
---
|
|
source: tests/golden_tests.rs
|
|
input_file: tests/golden_tests/simplify_matches/nested2.bend
|
|
---
|
|
(Foo) = λa λb (match b { List/Nil: λc (c List/Nil); List/Cons d e: λf (match e { List/Nil: λg λh (g (List/Cons h List/Nil)); List/Cons i j: λk λl (k l i j); } f d); } a)
|
|
|
|
(List/Nil) = λa (a List/Nil/tag)
|
|
|
|
(List/Cons) = λa λb λc (c List/Cons/tag a b)
|
|
|
|
(List/Nil/tag) = 0
|
|
|
|
(List/Cons/tag) = 1
|