Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
main(){
|
||||
var fruits = {
|
||||
'apples': 'red',
|
||||
'oranges': 'orange',
|
||||
'bananas': 'yellow',
|
||||
'pears': 'green',
|
||||
'plums': 'purple'
|
||||
};
|
||||
|
||||
print('Key Value pairs:');
|
||||
fruits.forEach( (fruits, color) => print( '$fruits are $color' ) );
|
||||
|
||||
print('\nKeys only:');
|
||||
fruits.keys.forEach( ( key ) => print( key ) );
|
||||
|
||||
print('\nValues only:');
|
||||
fruits.values.forEach( ( value ) => print( value ) );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue