Skip to content

Solution to Exercise 3.12 #860

Description

@jonathantorres

pointers

  • After the call to const z = append(x, y), tail(x) = ["b", null]. Since append creates a new copy of x with the elements of y.

pointers

  • After the call to const w = append_mutator(x, y), tail(x) = ["b", ["c", ["d", null]]]. Since append_mutator sets the tail of the last pair of x to y.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions