mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-09-11 11:56:54 +03:00
16 lines
275 B
Plaintext
16 lines
275 B
Plaintext
---
|
|
source: tests/golden_tests.rs
|
|
input_file: tests/golden_tests/encode_pattern_match/box.bend
|
|
---
|
|
Scott
|
|
(unbox) = λa (a λb b)
|
|
|
|
(box/new) = λa λb (b a)
|
|
|
|
NumScott
|
|
(unbox) = λa (a λb switch b { 0: λc c; _: *; })
|
|
|
|
(box/new) = λa λb (b box/new/tag a)
|
|
|
|
(box/new/tag) = 0
|