Skip to content

elyses-enchantments: please explain, in instructions, why using deleteat() returns [], but if one returns a COPY of the pruned array, Int64[]'s returned instead? #912

@libweirdness

Description

@libweirdness

I'm not certain why this would be, obviously I'm a beginner, & Exercism's my means of learning..

The elyses-enchantments exercise..

Please explain, in the instructions, why using

deleteat!( stack_of_cards )

returns

[]

but creating a copy of the array, without deleteat(), for some reason, produces Int64[]

( Some other language I tried learning, years-ago, you had to do it that way, so I used a for-loop for the before-deletion & another for the after-deletion, in doing a copy of the array, then returned the copy, .. which failed, obviously.

It may have been Haskell )

_ /\ _

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