String flip example

This commit is contained in:
Devine Lu Linvega 2024-04-07 12:35:59 -07:00
parent 361577caad
commit 936d57adc3
1 changed files with 8 additions and 0 deletions

8
examples/flip.modal Normal file
View File

@ -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))