Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -0,0 +1,18 @@
|
|||
class Main {
|
||||
static public function main() {
|
||||
var map = [1 => "one", 2 => "two"];
|
||||
|
||||
// key and value
|
||||
for (key => value in map) {
|
||||
trace(key + " " + value);
|
||||
}
|
||||
|
||||
// keys only
|
||||
for (key in map.keys())
|
||||
trace(key);
|
||||
|
||||
// values only
|
||||
for (value in map)
|
||||
trace(value);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue