Nicolas Boulenguez
1ca3ee3dcd
exercices: fix apply again. It must be a function, not a macro.
...
It is more interesting to ask an implementation of count from empty?
than the reverse.
Ask for nth, map, concat and conj.
Allow core.mal in answers. Currently, requires the branch with foldr.
2019-05-30 16:46:04 +02:00
Nicolas Boulenguez
304930e749
exercises: fix apply reimplementation, add Joel's hints for maps
2019-05-30 16:46:04 +02:00
Nicolas Boulenguez
0544b52f1a
Draft exercise suggesting native implementations of some built-in functions.
2019-05-30 16:46:04 +02:00
Nicolas Boulenguez
a1805b96af
Move tests of lib/ and new tests of core.mal to tests/lib/.
...
Partial translation of examples from lib/ to new tests.
Correct test of memoize.
`reduce`, `foldr`, `every?`, `some` and `and` were previously not
tested in tests/step*.mal. Tests them in `tests/lib/` instead.
2019-05-18 01:52:13 +02:00
Nicolas Boulenguez
dcdb6c029e
lib/: perform file splits, without change in contents
2019-05-18 01:52:13 +02:00
Nicolas Boulenguez
3e9b89d4b5
Prepare move of reusable code to lib/.
...
Changes creating huge diffs, like file splits, have been delayed for
readability .
Also fix description of `and`.
2019-05-18 01:52:13 +02:00
Sebastian Rasmussen
0198b7a230
Fix a number of typos in documentation/comments.
2017-09-15 20:00:15 +02:00
Joel Martin
e17aef048e
Misc fixes and TODO updates.
...
- Truncate ruby and python stacktraces since they can get very long
in certain cases causing problems.
- Fix Clojure West example with proper escaping.
2017-09-15 00:00:23 -05:00
Joel Martin
044eb1c758
examples/pprint.mal: comment out inline tests.
2016-02-10 16:21:33 -06:00
Joel Martin
531d0798ce
Simple pprint example.
...
Answering #165 .
2016-02-10 16:19:32 -06:00
Dov Murik
a624ba4b67
examples: add memoize.mal as a usage example for atoms
2015-12-10 12:51:39 -05:00
Dov Murik
513810af6b
add examples/eqaulity.mal
...
Implementations that don't have proper native comparison of hash-maps
and sequences can load examples/equality.mal for a pure-mal
implementation.
2015-11-17 14:41:06 -05:00
Joel Martin
a076db29a0
examples/: add chouser's protocols.mal file.
...
Originally from: https://gist.github.com/Chouser/6081ea66d144d13e56fc
2015-11-12 17:03:17 -06:00
Joel Martin
cb0533b0e8
Move mal code examples from mal/ to examples/
2015-11-12 17:00:55 -06:00