Skip to content

Instantly share code, notes, and snippets.

@LiewJunTung
Created December 14, 2019 00:34
Show Gist options
  • Save LiewJunTung/04ba29b2ba8077c5ef4133ac28c999f1 to your computer and use it in GitHub Desktop.
Save LiewJunTung/04ba29b2ba8077c5ef4133ac28c999f1 to your computer and use it in GitHub Desktop.
void main(){
var map = {"a": "b"};
var map2 = {"b": "c"};
print({...map, ...map2, "c": "d"});
var list = ["a", "b"];
var list2 = ["c", "d"];
print([...list, ...list2, "f", "g"]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment