Created
January 13, 2023 08:17
-
-
Save Msirkovsky/edba726b445c8935442efc80a859fcba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // nested primitive and immutable type | |
| const record = #{ name: "Primitive value", number: 33, nestedRecord : #{ number: 50} } | |
| // nested primitive and immutable type | |
| const tuple = #[ "Primitive value", 33, #{ number: 50}, #[1, true, null] } | |
| // record with a nested object instead of record throws an error as it's not a primitive type anymore | |
| const record = #{ name: "Primitive value", number: 33, nestedObject: { number: 50} } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment