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.0.5 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.0.4 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.0.3 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.0.2 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.0.1 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.0.0 tracks/vimscript/exercises/pangram/example.vim
trackler-2.1.0.55 tracks/vimscript/exercises/pangram/example.vim
trackler-2.1.0.54 tracks/vimscript/exercises/pangram/example.vim