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.180 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.179 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.178 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.177 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.176 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.175 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.174 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.173 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.172 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.171 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.170 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.169 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.167 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.166 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.165 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.164 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.163 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.162 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.161 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.160 tracks/vimscript/exercises/pangram/example.vim