blob: abb3a726babef809ec5c488386dc662847bd75f6 [file] [log] [blame]
void main(List<String> args) {
Set<String> fooSet = {
...args,
"hello",
...{"x": "y"}.keys,
for (String s in args) ...{
"$s",
"${s}_2",
},
if (args.length == 42) ...{
"length",
"is",
"42",
},
};
print(fooSet);
List<String> fooList = [
...args,
"hello",
...{"x": "y"}.keys,
for (String s in args) ...[
"$s",
"${s}_2",
],
if (args.length == 42) ...[
"length",
"is",
"42",
],
];
print(fooList);
Map<String, String> fooMap = {
"hello": "world",
for (String s in args) ...{
"$s": "${s}_2",
},
if (args.length == 42) ...{
"length": "42",
"is": "42",
"42": "!",
},
};
print(fooMap);
}