Skip to content

Commit

Permalink
exercises/practice/anagram: add an append with instructions about the…
Browse files Browse the repository at this point in the history
… order of the return values (#328)
  • Loading branch information
IsaacG authored Jan 19, 2025
1 parent 566dfd3 commit 5574c6d
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions exercises/practice/anagram/.docs/instructions.append.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@

## Track Specific Notes

For purposes
of this exercise, a word is not considered to be an anagram of
itself\.
You must return the anagrams in the same order as they are listed in the candidate words.

## Running and testing your solutions


### From the command line

Simply type `make chez` if you're using ChezScheme or `make guile` if you're using GNU Guile\.
Sometimes the name for the scheme binary on your system will differ from the defaults\.
When this is the case, you'll need to tell make by running `make chez chez=your-chez-binary` or `make guile guile=your-guile-binary`\.
Simply type `make chez` if you're using ChezScheme or `make guile` if you're using GNU Guile.
Sometimes the name for the scheme binary on your system will differ from the defaults.
When this is the case, you'll need to tell make by running `make chez chez=your-chez-binary` or `make guile guile=your-guile-binary`.

### From a REPL

* Enter `(load "test.scm")` at the repl prompt\.
* Develop your solution in `anagram.scm` reloading as you go\.
* Run `(test)` to check your solution\.
* Enter `(load "test.scm")` at the repl prompt.
* Develop your solution in `anagram.scm` reloading as you go.
* Run `(test)` to check your solution.

### Failed Test Cases

If some of the test cases fail, you should see the failing input and the expected output\.
The failing input is presented as a list because the tests call your solution by `(apply anagram input-list)`\.
To learn more about `apply` see [The Scheme Programming Language -- Chapter 5](https://www.scheme.com/tspl4/control.html#./control:h1)
If some of the test cases fail, you should see the failing input and the expected output.
The failing input is presented as a list because the tests call your solution by `(apply anagram input-list)`.
To learn more about `apply` see [The Scheme Programming Language -- Chapter 5](https://www.scheme.com/tspl4/control.html#./control:h1).

0 comments on commit 5574c6d

Please sign in to comment.