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.119 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.118 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.117 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.116 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.115 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.114 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.113 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.111 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.110 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.109 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.108 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.107 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.106 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.105 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.104 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.103 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.102 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.101 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.100 tracks/vimscript/exercises/raindrops/example.vim
trackler-2.2.1.99 tracks/vimscript/exercises/raindrops/example.vim