nvim/pack/acp/opt/coc.nvim/autoload/coc/math.vim

12 lines
216 B
VimL
Raw Normal View History

2023-03-10 16:38:45 +00:00
" 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