modal/examples/string_reverse.modal

7 lines
207 B
Plaintext

?(?0 ()) (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))