Skip to content

Add List-Ops practice exercise#161

Open
jojo8356 wants to merge 2 commits intoexercism:mainfrom
jojo8356:add-list-ops-exercise
Open

Add List-Ops practice exercise#161
jojo8356 wants to merge 2 commits intoexercism:mainfrom
jojo8356:add-list-ops-exercise

Conversation

@jojo8356
Copy link

Closes #158

Summary

  • Add list-ops practice exercise (difficulty 3)
  • 8 operations: append, concat, filter, length, map, foldl, foldr, reverse
  • Reference solution using pure recursion (no stdlib list functions)
  • Test generator with function string → Lean lambda mapping
  • 22 test cases from canonical data (integer division for fold tests)

Files

  • exercises/practice/list-ops/ — full exercise (stub, tests, example, docs, lakefile)
  • generators/Generator/Generator/ListOpsGenerator.lean — test generator
  • generators/Generator/Generator.lean — updated dispatch table
  • config.json — added exercise entry

Implements all 8 list operations: append, concat, filter, length,
map, foldl, foldr, reverse. Includes test generator, reference
solution, and 22 test cases from canonical data.

Closes exercism#158
@github-actions
Copy link
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Mar 24, 2026
@keiravillekode
Copy link
Contributor

Next time, please follow How to contribute

@@ -0,0 +1,18 @@
{
"authors": [
"oxe-i"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be your github username

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I maj with claude because I am in another project with and I am tired, sorry.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maj = update

@oxe-i oxe-i added x:rep/medium Medium amount of reputation x:size/medium Medium amount of work labels Mar 24, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
"difficulty": 3
},
{
"slug": "list-ops",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exercises of the same difficulty are organized in alphabetical order. You should use bin/reorder-exercises

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

x:rep/medium Medium amount of reputation x:size/medium Medium amount of work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add List-Ops practice exercise

3 participants