1
0
Fork 0
mirror of synced 2024-11-05 08:58:59 -05:00
ultimate-vim/sources_non_forked/tlib/autoload/tlib/dictionary.vim
2015-12-08 10:20:04 -03:00

15 lines
373 B
VimL

" @Author: Tom Link (mailto:micathom AT gmail com?subject=[vim])
" @Website: https://github.com/tomtom
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Last Change: 2015-10-14
" @Revision: 2
function! tlib#dictionary#Rev(dict) abort "{{{3
let rev = {}
for [m, f] in items(a:dict)
let rev[f] = m
endfor
return rev
endf