Skip to content

Instantly share code, notes, and snippets.

@Osse
Created September 13, 2012 08:25
Show Gist options
  • Save Osse/3712852 to your computer and use it in GitHub Desktop.
Save Osse/3712852 to your computer and use it in GitHub Desktop.
Unflatten a list
let myList = [ 'a', 'b', 'c', 'd', 'e', 'f' ]
for i in range(0,len(myList)/3 - 1)
let myList[i] = myList[i : i+2]
call remove(myList, i+1,i+2)
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment