Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3] Extract Concepts from v2 exercise: Armstrong Numbers #312

Closed
bobbicodes opened this issue Feb 4, 2020 · 3 comments
Closed

[v3] Extract Concepts from v2 exercise: Armstrong Numbers #312

bobbicodes opened this issue Feb 4, 2020 · 3 comments

Comments

@bobbicodes
Copy link
Member

bobbicodes commented Feb 4, 2020

Extract the list of concepts required to solve the v2 Clojure exercise: Armstrong Numbers. For each concept, describe why it is required to solve the exercise. Keep in mind that an exercise can have multiple approaches (you can find community solutions here: https://exercism.io/tracks/clojure/exercises/armstrong-numbers/solutions). The goal of this task is to help determine the total list of concepts that make up Armstrong Numbers.

The list of concepts should be stored in the following document: reference/exercise-concepts/armstrong-numbers.md. Use this link to create a PR to add this document.

@bemself
Copy link
Contributor

bemself commented Feb 22, 2020

@porkostomus sorry to ask, what do we further need to do? I see in v3 you've already prepared a list of concept...

@bobbicodes
Copy link
Member Author

Good question. I actually just filed this because I saw that's what everyone else was doing! But since I've taken a more comprehensive approach towards defining concepts (based on the official docs, Clojure Atlas, etc.) rather than extracting them from v2 exercises, which tbh do not really represent an ideal learning path.

This issue should simply serve as an example, should anyone at any time feel that a certain v2 exercise would be worth deconstructing. After all, there are 76 of them ;)

@nicolechalmers nicolechalmers changed the title [Clojure] Extract Concepts from v2 exercise: Armstrong Numbers [v3] Extract Concepts from v2 exercise: Armstrong Numbers Jan 28, 2021
@nicolechalmers nicolechalmers transferred this issue from exercism/v3 Jan 28, 2021
@bobbicodes
Copy link
Member Author

bobbicodes commented Feb 7, 2021

As we are preparing for the launch of v3 this is becoming relevant. See #330.

The essence of this exercise is learning to use higher-order functions, specifically map and reduce.

  1. The number must be split into its digits, either by division or string iteration
  2. An exponent function must be created or called from Java Math library. If created, this will most likely involve a reduce.
  3. This exponent function will need to be mapped onto the digits
  4. reduce is used to "add them all up", the most basic use of the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants