Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlexanderBaggett/04fb6fde4c1bbc4da9042ad28db99f63 to your computer and use it in GitHub Desktop.
Save AlexanderBaggett/04fb6fde4c1bbc4da9042ad28db99f63 to your computer and use it in GitHub Desktop.
Gregg Irwin explaining How set works in Red
o: object [a: 1 b: 2 c: 3]
== make object! [
a: 1
b: 2
c: 3
]
>> set o object [a: 11 b: 12]
== make object! [
a: 11
b: 12
]
>> o
== make object! [
a: 11
b: 12
c: 3
]
>> set/only o object [a: 11 b: 12]
== make object! [
a: 11
b: 12
]
>> o
== make object! [
a: make object! [
a: 11
b: 12
]
b: make object! [
a: 11
b: 1...
>> probe o
make object! [
a: make object! [
a: 11
b: 12
]
b: make object! [
a: 11
b: 12
]
c: make object! [
a: 11
b: 12
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment