Sha256: e6bf4b935452b2954d767b33652ac09eba60912d47168474dd53782cab8c8382

Contents?: true

Size: 207 Bytes

Versions: 306

Compression:

Stored size: 207 Bytes

Contents

function isisogram(s::AbstractString)
    s = lowercase(s)
    chars = Char[]

    for c in s
        isalpha(c) || continue
        c ∉ chars ? push!(chars, c) : return false
    end

    return true
end

Version data entries

306 entries across 306 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.179 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.178 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.177 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.176 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.175 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.174 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.173 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.172 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.171 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.170 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.169 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.167 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.166 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.165 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.164 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.163 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.162 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.161 tracks/julia/exercises/isogram/example.jl
trackler-2.2.1.160 tracks/julia/exercises/isogram/example.jl