Created
December 14, 2019 00:34
-
-
Save LiewJunTung/04ba29b2ba8077c5ef4133ac28c999f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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