interplane.Get Omega
Read in your language

omega-rosetta

aien-dev/omega-rosetta

Brought by drakestapleton

branch main Branches Tags History

omega-rosetta / exercises / pangram / .meta / example.om

23 lines · 555 bytes Raw Blame History
1note Exercism-style exercise "pangram": https://exercism.org/tracks/python/exercises/pangram
2note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3note ispangram is true when s contains every letter a .. z at least once, ignoring case.
4note Check it with: sh exercise.sh exercises/pangram
5om2
6fn ispangram s view uchar * to bool
7seen = new uchar 26 0
8n = ulong 0
9for i ulong len s
10c = get s i
11if and ge c 65 le c 90
12c = add c 32
13end
14if and ge c 97 le c 122
15k = ulong sub c 97
16if eq get seen k 0
17put seen k 1
18n = add n 1
19end
20end
21end
22ret eq n 26
23end