Sha256: b35d939920f3c397503bc731f3694936bbb187027ecc7cdc9c9711be978684ae

Contents?: true

Size: 252 Bytes

Versions: 221

Compression:

Stored size: 252 Bytes

Contents

function! Raindrops(number) abort
  let s = ''

  if a:number % 3 == 0 | let s .= 'Pling' | endif
  if a:number % 5 == 0 | let s .= 'Plang' | endif
  if a:number % 7 == 0 | let s .= 'Plong' | endif

  return empty(s) ? string(a:number) : s
endfunction

Version data entries

221 entries across 221 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.179 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.178 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.177 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.176 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.175 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.174 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.173 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.172 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.171 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.170 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.169 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.167 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.166 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.165 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.164 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.163 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.162 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.161 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.160 tracks/vimscript/exercises/raindrops/example.vim