modal/examples/string_reverse.modal

7 lines
204 B
Plaintext

?(?-) (This example reverses the string modal, into ladom.)
<> (reverse List () ?^) (?^)
<> (reverse (?*)) (reverse List (?*) ())
<> (reverse List (?x ?y) ?z) (reverse List ?y (?x ?z))
(reverse (modal))