Sha256: aa942b16e4cd6f1a0560a114a05b031cbb3a32280dd5d6bef1d3e3a19d2254fa

Contents?: true

Size: 242 Bytes

Versions: 188

Compression:

Stored size: 242 Bytes

Contents

function! IsPangram(sentence) abort
  let dict = {}

  for char in map(split(a:sentence, '\zs'), 'tolower(v:val)')
    if char =~? '\a' && !has_key(dict, char)
      let dict[char] = 1
    endif
  endfor

  return len(dict) == 26
endfunction

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
trackler-2.2.1.38 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.37 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.36 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.35 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.34 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.33 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.32 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.31 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.30 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.29 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.28 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.27 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.26 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.25 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.24 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.23 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.22 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.21 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.20 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.19 tracks/vimscript/exercises/pangram/example.vim