Skip to content

Ch. 6 – Argument differences in matrix classes #376

@mikegee0101

Description

@mikegee0101

In the Matrix class constructor, you set the default for the content parameter like this:

constructor(width, height, content = () => undefined) (i.e. no parameters in the function)

But then in theSymmetricMatrix class constructor, set the default for the content parameter like this:

constructor(size, content = (x, y) => undefined) (i.e. x and y parameters in the function)

Is there a reason these are different?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions