1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:30:04 +08:00
SpaceVim/bundle/coc.nvim-release/autoload/coc/math.vim
2023-03-30 10:48:58 +08:00

12 lines
216 B
VimL

" support for float values
function! coc#math#min(first, ...) abort
let val = a:first
for i in range(0, len(a:000) - 1)
if a:000[i] < val
let val = a:000[i]
endif
endfor
return val
endfunction