We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const z = append(x, y)
tail(x) = ["b", null]
append
x
y
const w = append_mutator(x, y)
tail(x) = ["b", ["c", ["d", null]]]
append_mutator
The text was updated successfully, but these errors were encountered:
The first picture is not correct, because the list
["c", ["d", null]]
is shared between y and z.
z
Sorry, something went wrong.
No branches or pull requests
const z = append(x, y)
,tail(x) = ["b", null]
. Sinceappend
creates a new copy ofx
with the elements ofy
.const w = append_mutator(x, y)
,tail(x) = ["b", ["c", ["d", null]]]
. Sinceappend_mutator
sets the tail of the last pair ofx
toy
.The text was updated successfully, but these errors were encountered: