Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Array-length/BaCon/array-length.bacon
Normal file
18
Task/Array-length/BaCon/array-length.bacon
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
' Static arrays
|
||||
|
||||
DECLARE fruit$[] = { "apple", "orange" }
|
||||
PRINT UBOUND(fruit$)
|
||||
|
||||
' Dynamic arrays
|
||||
|
||||
DECLARE vegetable$ ARRAY 2
|
||||
vegetable$[0] = "cabbage"
|
||||
vegetable$[1] = "spinach"
|
||||
PRINT UBOUND(vegetable$)
|
||||
|
||||
' Associative arrays
|
||||
|
||||
DECLARE meat$ ASSOC STRING
|
||||
meat$("first") = "chicken"
|
||||
meat$("second") = "pork"
|
||||
PRINT UBOUND(meat$)
|
||||
Loading…
Add table
Add a link
Reference in a new issue