Skip to content

Instantly share code, notes, and snippets.

@rebolek
Created March 29, 2014 18:02
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 rebolek/9859158 to your computer and use it in GitHub Desktop.
Save rebolek/9859158 to your computer and use it in GitHub Desktop.
combine: func [
"Reduces and joins a block of values."
block [block!] "Values to reduce and join"
] [
if empty? block: reduce block [return block]
remove-each value block [none? value]
append either series? first block [copy first block] [
form first block
] next block
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment