Created
July 16, 2015 03:54
-
-
Save dahu/48f2223dc3e2a5282902 to your computer and use it in GitHub Desktop.
iterating a dict's items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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