String flip example
This commit is contained in:
parent
361577caad
commit
936d57adc3
|
@ -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))
|
Loading…
Reference in New Issue