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

16 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