Bend/tests/snapshots/simplify_matches__complex_with_case.bend.snap

16 lines
423 B
Plaintext
Raw Permalink Normal View History

---
source: tests/golden_tests.rs
input_file: tests/golden_tests/simplify_matches/complex_with_case.bend
---
2024-06-05 17:00:43 +03:00
(map) = λa λb (match b { Tree_/Node c d e f: λg (Tree_/Node (map g c) (map g d) (map g e) (map g f)); Tree_/Leaf h: λi (Tree_/Leaf (i h)); } a)
(main) = map
2024-06-05 17:00:43 +03:00
(Tree_/Node) = λa λb λc λd λe (e Tree_/Node/tag a b c d)
2024-06-05 17:00:43 +03:00
(Tree_/Leaf) = λa λb (b Tree_/Leaf/tag a)
2024-06-05 17:00:43 +03:00
(Tree_/Node/tag) = 0
2024-06-05 17:00:43 +03:00
(Tree_/Leaf/tag) = 1