Skip to content

Instantly share code, notes, and snippets.

@moonexpr
Created February 6, 2023 18:49
Show Gist options
  • Save moonexpr/7bd54b8c4e49d0d1371a00509025d725 to your computer and use it in GitHub Desktop.
Save moonexpr/7bd54b8c4e49d0d1371a00509025d725 to your computer and use it in GitHub Desktop.
" Setup data
let meditations = { 'mon': 'sunlight visual', 'tue': 'appreciation', 'wed': 'noting technique', 'thu': 'loving-kindness meditation', 'fri': 'body awareness', }
" Play with our data
let meditations.mon = '- cancelled - '
" Present our data with style!
echom "Meditation schedule"
echom "-------------------"
let medi_items = reverse(items(meditations))
for dup in medi_items
echom dup[0] . ": " . dup[1]
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment