Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-rosetta/blob/main/tasks/generate-lower-case-ascii-alphabet/generate-lower-case-ascii-alphabet.om # omega-rosetta aien-dev/omega-rosetta Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-rosetta / tasks / generate-lower-case-ascii-alphabet / generate-lower-case-ascii-alphabet.om` 24 lines ยท 537 bytes Raw Blame History 1 note Rosetta Code task "Generate lower case ASCII alphabet": https://rosettacode.org/wiki/Generate_lower_case_ASCII_alphabet 2 note SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 om2 4 text nl "\n" 5 note emit writes every byte of a to stdout; a short write is retried, an error exits 1 6 fn emit a view uchar * to void 7 o = ulong 0 8 while lt o len a bound 4096 9 k = write 1 a o sub len a o 10 if le k 0 11 exit 1 12 end 13 o = add o ulong k 14 end 15 end 16 fn main to int 17 a = new uchar 26 0 18 for i ulong 26 19 put a i add uchar i 97 20 end 21 emit a 22 emit nl 23 ret 0 24 end