Skip to content

Add the Elyses Enchantments concept exercise for arrays - #992

Draft
glennj wants to merge 3 commits into
exercism:mainfrom
glennj:concept-exercise-arrays
Draft

glennj wants to merge 3 commits into
exercism:mainfrom
glennj:concept-exercise-arrays

Conversation

@glennj

@glennj glennj commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

glennj and others added 3 commits December 4, 2026 13:21
Move the associative-arrays section out of the arrays concept into a new
associative-arrays concept, a sibling of more-arrays in the syllabus.

Also add to arrays: checking for an element with -v, removing one with
unset, and a few wording fixes.
Add the suggested exercises to the concept exercise road-map, and make
looping the prerequisite for arrays.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Fork the JavaScript elyses-enchantments story for the arrays concept,
with looping as its prerequisite.

The exercise uses a subcommand interface: the first argument names the
operation, and the remaining arguments are that operation's inputs.
The stub provides the `case` dispatch and the argument handling, so the
student only writes the array logic in each branch.

There are eight tasks, each printing a single line: retrieving a card by
index, exchanging a card, inserting and removing at the top and at the
bottom of the stack, and checking the size of the stack.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@glennj
glennj requested a review from a team December 4, 2026 18:31
@glennj glennj added x:action/create Work on something from scratch x:module/practice-exercise Work on Practice Exercises x:type/content Work on content (e.g. exercises, concepts) x:rep/large Large amount of reputation labels Dec 4, 2026
@glennj
glennj marked this pull request as draft December 4, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:action/create Work on something from scratch x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:type/content Work on content (e.g. exercises, concepts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant