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.78 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.77 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.76 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.75 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.74 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.73 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.72 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.71 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.70 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.69 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.68 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.67 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.66 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.65 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.64 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.63 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.62 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.61 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.60 tracks/vimscript/exercises/pangram/example.vim
trackler-2.2.1.59 tracks/vimscript/exercises/pangram/example.vim