Skip to content

Instantly share code, notes, and snippets.

@Msirkovsky
Created January 13, 2023 08:17
Show Gist options
  • Select an option

  • Save Msirkovsky/edba726b445c8935442efc80a859fcba to your computer and use it in GitHub Desktop.

Select an option

Save Msirkovsky/edba726b445c8935442efc80a859fcba to your computer and use it in GitHub Desktop.
// 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