math.vim 216 B

1234567891011
  1. " support for float values
  2. function! coc#math#min(first, ...) abort
  3. let val = a:first
  4. for i in range(0, len(a:000) - 1)
  5. if a:000[i] < val
  6. let val = a:000[i]
  7. endif
  8. endfor
  9. return val
  10. endfunction