Skip to content

Clarify "jumble the names" sub-exercise in the "Name Squash" exercise #28

Open
@zoodor

Description

@zoodor

The "jumble the names" exercise doesn't explicitly call out that the expectation that the written function should be passed the collection of people created in the first exercise.

It would help clarify things if an example of how the function will be called was given (it might be useful if the first exercise gave an example name for the collection to be created so that it could be referenced here - e.g. "famous-scientists" is used in the example answer for the first question (though it shouldn't reference something that is only visible in a section that the student may not have revealed).

e.g.
Text for "A collection of two people" exercise could be:

Create a collection of two people. Each person should have a two part name, e.g. "Ada Lovelace".

Give your collection a name (e.g. "famous-scientists") so you can use it in later exercises on this page.

and the text for "Jumble the names" exercise could be:

Write a function that takes your collection of people (e.g. the "famous-scientists") and jumbles up the first and last names to create a new person.

For example, take the first name from the first person and join it with the last name from the second person.
It would be called like:
(jumble-names famous-scientists)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions