Skip to content

Solution to Exercise 3.12 #860

Open
Open
@jonathantorres

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.

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