Skip to content

Instantly share code, notes, and snippets.

@dahu
Created July 16, 2015 03:54
Show Gist options
  • Save dahu/48f2223dc3e2a5282902 to your computer and use it in GitHub Desktop.
Save dahu/48f2223dc3e2a5282902 to your computer and use it in GitHub Desktop.
iterating a dict's items
let x = {'one' : 1, 'two' : 2}
for [k, v] in items(x)
echo k . ' -> ' . v
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment