Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Character-codes/V-(Vlang)/character-codes.v
Normal file
10
Task/Character-codes/V-(Vlang)/character-codes.v
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
fn main() {
|
||||
println('a'[0]) // prints "97"
|
||||
println('π'[0]) // prints "207"
|
||||
|
||||
s := 'aπ'
|
||||
println('string cast to bytes: ${s.bytes()}')
|
||||
for c in s {
|
||||
print('0x${c:x} ')
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue