Julia slower than Python for finding pangrams?

Using more explicit for loop:

function ispangram3(input)
    appears = falses(26)
    for c in input
        isletter(c) || continue
        appears[lowercase(c)-'a'+1] |= true
    end
    return all(appears)
end

is a bit faster.

2 Likes