Generate lower case ASCII alphabet: Difference between revisions

m
m (→‎{{header|OCaml}}: alternative)
 
(2 intermediate revisions by 2 users not shown)
Line 1,010:
 
=={{header|Elena}}==
ELENA 56.0x :
<syntaxhighlight lang="elena">import extensions;
import system'collections;
Line 1,020:
char current;
get Value() = current;
bool next()
Line 2,194:
[|'a'; 'b'; 'c'; 'd'; 'e'; 'f'; 'g'; 'h'; 'i'; 'j'; 'k'; 'l'; 'm'; 'n'; 'o';
'p'; 'q'; 'r'; 's'; 't'; 'u'; 'v'; 'w'; 'x'; 'y'; 'z'|]</syntaxhighlight>
 
Alternative version:
<syntaxhighlight lang="ocaml">Array.init 26 (fun x -> char_of_int (x + int_of_char 'a'))</syntaxhighlight>
 
=={{header|Oforth}}==
Line 2,998 ⟶ 3,001:
 
=={{header|Wren}}==
<syntaxhighlight lang="javascriptwren">var alpha = []
for (c in 97..122) alpha.add(String.fromByte(c))
System.print(alpha.join())</syntaxhighlight>
23

edits