A modular Vim/Neovim configuration

Home | About | Quick start guide | Documentation | Development | Community | Sponsors | 中文

Available APIs » data#dict


data#dict API provides some functions to manipulate a dict. Here is an example for using this api:

let s:DICT = SpaceVim#api#import('data#dict')


name description
make(keys, values, ...) make dict from keys and values
swap(dict) swap keys and values of a dict
make_index(list, ...) make a index dict from a list
omit(dict, keys) remove keys in a dict
clear(dict) clear a dict
pick(dict, keys) pick keys from a dict
max_by(dict, expr) get max entry based on expr
min_by(dict, expr) get min entry based on expr

Powered by Jekyll