From 936d57adc3405b0cf63c4312751cf4ec2ae95ac5 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sun, 7 Apr 2024 12:35:59 -0700 Subject: [PATCH] String flip example --- examples/flip.modal | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 examples/flip.modal diff --git a/examples/flip.modal b/examples/flip.modal new file mode 100644 index 0000000..f8c9e7b --- /dev/null +++ b/examples/flip.modal @@ -0,0 +1,8 @@ +<> (explode ?*) (str (?*)) +<> (reverse (str (?h ?t))) (reverse/l ?t (?h)) +<> (reverse (str (?h))) (?h) +<> (reverse/l (?h ?t) ?l) (reverse/l ?t (?h ?l)) +<> (reverse/l (?h) ?l) (str (?h ?l)) +<> (implode str ?*) (?*) + +(implode reverse (explode hello)) \ No newline at end of file