Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
6
Task/Character-codes/Dart/character-codes.dart
Normal file
6
Task/Character-codes/Dart/character-codes.dart
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
void main() {
|
||||
const string = 'D';
|
||||
print(string.runes.first);
|
||||
var out = String.fromCharCode(67);
|
||||
print(out);
|
||||
}
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
val a1 = 'a'
|
||||
val a2 = 97
|
||||
val a3 = "a"[1]
|
||||
val a4 = s2cp("a", 1)
|
||||
val a4 = s2cp("a", of=1)
|
||||
val a5 = [a1, a2, a3, a4]
|
||||
|
||||
writeln a1 == a2
|
||||
writeln a2 == a3
|
||||
writeln a3 == a4
|
||||
writeln "numbers: ", join(", ", map(string, [a1, a2, a3, a4, a5]))
|
||||
writeln "letters: ", join(", ", map(cp2s, [a1, a2, a3, a4, a5]))
|
||||
writeln "numbers: ", join(map([a1, a2, a3, a4, a5], by=string), by=", ")
|
||||
writeln "letters: ", join(map([a1, a2, a3, a4, a5], by=cp2s), by=", ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue