Skip to content

Instantly share code, notes, and snippets.

@abeaumont
Created December 16, 2011 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abeaumont/1487503 to your computer and use it in GitHub Desktop.
Save abeaumont/1487503 to your computer and use it in GitHub Desktop.
: toandfro ( sequence n -- string )
group [ odd? [ reverse ] when ] map-index
flip concat >string ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment