Skip to content

Accumulate: Add tests for mutability/immutability #1804

Description

@booniepepper

Accumulate is an exercise that uses higher order functions to perform a map/transform/etc operation on an input list.

In some languages I've seen solutions that mutate the input list as part of their solution. (Some languages like Haskell can't have this problem, but C, Go, Common Lisp, etc certainly can)

Is it possible to add an optional test across the board for "input list is not mutated"?

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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions