Commit graph

136 commits

Author SHA1 Message Date
Kenneth Kostresevic
1c14aa0306 Use explicit list 2021-12-16 16:24:34 +01:00
Kenneth Kostresevic
c1f179948c Solve sequence comprehensions 2021-12-16 14:08:59 +01:00
Nick Reilingh
a9c22921a5 27_multimethods.clj - fixed typo?
The word "do" seems to be missing in the final koan.
2020-07-08 10:10:08 -05:00
neta-kedem
d749795c31 fixing typo
missing c in the word function
2019-12-02 13:48:27 -06:00
neta-kedem
040070bbed text styling
"A multimethod takes one or more arguments" sound better than previous version
2019-12-02 13:48:01 -06:00
Alex Lynham
eb73f39c9e Add some simple examples for multimethods 2019-10-28 16:37:33 -05:00
Spenser Truex
9c115996f9 Fixed whitespace: trailing and indent. 2019-10-28 16:35:08 -05:00
Alex Lynham
3afe01adc7 Address changes to PR adding threading forms 2019-09-23 10:50:43 -05:00
Alex Lynham
ba141d0fc2 Add some examples for threading macros and a couple of simple transducer koans 2019-09-23 10:50:43 -05:00
Colin Jones
809af93e35
Focus the problem and clean up naming in macros
Fixes #134
2018-04-09 10:12:47 -05:00
Colin Jones
7974120ec3
Use an explicit function argument for iterate
Also replace :hello with "hello" to avoid potential confusion since
:hello is also a function.

refs #75
2017-10-09 13:17:12 -05:00
Colin Jones
e74a2664f0
Make it clearer what %2 is about 2017-05-10 08:32:25 -05:00
Sara Inés Calderón
247e5d0351 Spelling fix occurrence (#121)
Updated spelling of "occurrence"
2016-11-29 22:48:54 -06:00
Ken Smith
e0d037d529 Correct closing paren for meditations (#118)
The closing paren for meditations occurred after the second-to-last
koan instead of the last one, so the test on the last one would never
be executed.
2016-10-26 10:16:11 -05:00
Colin Jones
570fb3b08b
Clean up whitespace a bit 2016-10-06 08:38:28 -05:00
Rafik Naccache
60f1d1ecd3 Maps - add merge-with and map entries as seq 2016-10-06 08:37:18 -05:00
Steve George
a4556887b4 Create a 'merge' test to join maps together. (#113) 2016-09-25 08:36:39 -05:00
Colin Jones
007cbae060
Reverse order of quoting & macros koans
The macros lesson depends on the quoting one.
2016-05-12 10:43:41 -05:00
Colin Jones
6c00a3e358
Improve some of the quote descriptions 2016-05-12 10:41:09 -05:00
qc1iu
bfeaa7cf07
Create quote koan
Covers
- quote
- syntax-quote
- unquote
2016-05-12 10:26:07 -05:00
fordjm
4fe86ecc74 Fixed a bug in 14_recursion.clj meditations (#105)
* Fixes a bug that allows recursive-reverse to return '(1) for the base case.
2016-05-12 10:23:12 -05:00
Pascal Honoré
ed23b910fa Updated description
Thanks to @Strikingwolf for the suggestion!
2016-03-25 21:53:55 +00:00
Pascal Honoré
4d4cb3b93a First encounter with nil
In 02_strings.clj, the answer to

   (= __ (string/index-of "hello world" "bob"))

is `nil` but `nil` is not obvious for somebody who
never saw it before. This step introduces it.
2016-03-25 18:12:04 +00:00
Damian Niemczyk
a8fe71e26f Update java string methods to clojure functions
With Clojure 1.8.0 finally those string methods now have corresponding
Clojure functions.

Of note here is that the clojure.string/index-of function responds
with nil if nothing is found and not -1 as .IndexOf previously did.
2016-01-25 16:50:34 -06:00
Colin Jones
ec9d5cd66f Emphasize the leftovers included by partition-all 2016-01-25 16:45:53 -06:00
Michael Perez
d30e324bcd src/koans/21_partition.clj: correct meditation doc
The meditation was misleading because calling `(partition-all 3 (range 5))` returns `((0 1 2) (3 4))` results in sequences having <=3 elements , not strictly less than.
2016-01-14 20:36:43 -05:00
SuperStevenZ
51176084a4 Update 23_meta.clj
Fixed a spelling mistake:
23_meta.clj 12:18
*succintly* -> succinctly
2015-10-17 08:48:49 -05:00
William Jackson
3e3b2d3a94 Fix mispellings 2015-10-02 18:23:29 -05:00
Striking
5a836be75c Create the meditations of a string koan
Covers
* String creation
* String concatenation
* Counting strings characters and getting them
* Difference between chars and strings
* Substrings
* string/join w/ and w/o separators
* string/split-lines
* .indexOf and .lastIndexOf
* string/trim
* char? and string?
* blank?
2015-09-13 01:17:47 -05:00
Striking
7498707bc0 Change file/ns names for everything and add 02_strings 2015-09-13 00:28:39 -05:00
Colin Jones
cba0d3733f Merge remote-tracking branch 'brymaven/meta-koan' 2015-07-20 08:26:42 -05:00
Colin Jones
071e5a215d Merge pull request #94 from ode79/patch-2
Remove extra space in 10_lazy_sequences.clj
2015-07-20 08:25:06 -05:00
ode79
fed56b1cdd Extra whitespace in 10_lazy_sequences.clj 2015-07-19 23:55:37 +01:00
ode79
f25c3ef62f Alignment on line in 09_runtime_polymorphism.clj
1 missing space.

Most inconsequential pull request ever :)
2015-07-19 23:41:27 +01:00
Bryant
93e76cb56a Fix grammar and formatting in group by koan 2015-07-12 17:43:16 -07:00
Bryant
173dd560d7 Add koan for metadata 2015-07-12 17:17:48 -07:00
Colin Jones
b1ea905c57 Update answer sheet for ClojureBridge-MN changes 2015-07-06 07:28:21 -05:00
Tom Marble
356844ba0a Replaced Playground song with Oxford comma 2015-06-24 14:11:00 -05:00
Tom Marble
f30feb25fe Merge branch 'friendlier-koans' 2015-06-24 07:58:49 -05:00
Tom Marble
f678ac204d Merge pull request #3 from elenam/master
changed another foo to hello
2015-06-24 07:44:13 -05:00
Elena Machkasova
6866ccd933 changed another foo to hello 2015-06-14 23:35:01 -05:00
Tom Marble
54d4b1a999 refer to clojure.set in 04 2015-06-14 21:38:41 -05:00
Tom Marble
6d5b226307 attempt to make koans more inclusive 2015-06-14 21:06:04 -05:00
Tom Marble
c4958a9263 Merge pull request #1 from clojurebridge-minneapolis/brian/fix-koans-2
Made conditionals exercises more PC.
2015-06-14 20:56:50 -05:00
Brian Dawn
29aedc3a6a Made conditionals exercises more novice friendly. 2015-06-14 11:15:40 -05:00
Elena Machkasova
8a5303df8f replaced "foo" examples with "hello"
This is more novice-friendly
2015-06-14 11:11:39 -05:00
Piotr Bzdyl
7f21443d6f Simplified code. 2015-03-03 20:12:17 +01:00
Mike Jansen
45ea6e3441 update maps koans with 2018 Olympics 2014-11-26 16:19:04 -06:00
Colin Jones
04b3c4a960 Bump koan-engine dependency
Also eliminates some ns forms that we can do without now.

Closes #71
2014-05-02 16:39:13 -05:00
David Kinzer
711925a043 Add name-spaces to the clojure koans files.
This commit adds two name-spaces to beginning of the clojure koan files
in order to fix an issue both #68 and #69.
2014-05-02 16:38:17 -05:00