Data update
This commit is contained in:
parent
72eb4943cb
commit
4d5544505c
2347 changed files with 62432 additions and 16731 deletions
6
Task/Array-length/Ballerina/array-length.ballerina
Normal file
6
Task/Array-length/Ballerina/array-length.ballerina
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import ballerina/io;
|
||||
|
||||
public function main() {
|
||||
string[2] fruits = ["apple", "orange"];
|
||||
io:println(fruits.length());
|
||||
}
|
||||
18
Task/Array-length/Uxntal/array-length.uxnatl
Normal file
18
Task/Array-length/Uxntal/array-length.uxnatl
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
%\0 { 00 }
|
||||
%DBG { [ LIT2 01 -System/debug ] DEO }
|
||||
|
||||
|0e @System/debug
|
||||
|
||||
|100
|
||||
|
||||
;array len-arr DBG
|
||||
|
||||
BRK
|
||||
|
||||
@len-arr ( {array}* -- length* )
|
||||
LDA2k SWP2 INC2 INC2 SUB2 #01 SFT2
|
||||
JMP2r
|
||||
|
||||
@array ={ =apple =orange }
|
||||
@apple "apple \0
|
||||
@orange "orange \0
|
||||
Loading…
Add table
Add a link
Reference in a new issue