trackler 2.2.1.175 → 2.2.1.176

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/lib/trackler/version.rb +1 -1
  3. data/tracks/clojure/config.json +1 -0
  4. data/tracks/clojure/docs/ABOUT.md +13 -0
  5. data/tracks/clojure/docs/INSTALLATION.md +21 -0
  6. data/tracks/clojure/docs/LEARNING.md +29 -0
  7. data/tracks/clojure/docs/RESOURCES.md +9 -0
  8. data/tracks/clojure/docs/{TESTS.org → TESTS.md} +22 -27
  9. data/tracks/clojure/exercises/anagram/src/anagram.clj +1 -1
  10. data/tracks/clojure/exercises/armstrong-numbers/src/armstrong_numbers.clj +1 -1
  11. data/tracks/clojure/exercises/beer-song/src/beer_song.clj +1 -1
  12. data/tracks/clojure/exercises/bob/src/bob.clj +1 -1
  13. data/tracks/clojure/exercises/clock/src/clock.clj +3 -3
  14. data/tracks/clojure/exercises/collatz-conjecture/src/collatz_conjecture.clj +1 -1
  15. data/tracks/clojure/exercises/etl/src/etl.clj +1 -1
  16. data/tracks/clojure/exercises/flatten-array/src/flatten_array.clj +1 -1
  17. data/tracks/clojure/exercises/grade-school/src/grade_school.clj +3 -3
  18. data/tracks/clojure/exercises/hamming/src/hamming.clj +2 -2
  19. data/tracks/clojure/exercises/leap/src/leap.clj +1 -1
  20. data/tracks/clojure/exercises/nucleotide-count/src/nucleotide_count.clj +2 -2
  21. data/tracks/clojure/exercises/phone-number/src/phone_number.clj +3 -3
  22. data/tracks/clojure/exercises/reverse-string/src/reverse_string.clj +1 -1
  23. data/tracks/clojure/exercises/rna-transcription/src/rna_transcription.clj +1 -1
  24. data/tracks/clojure/exercises/robot-name/src/robot_name.clj +2 -2
  25. data/tracks/clojure/exercises/run-length-encoding/src/run_length_encoding.clj +3 -3
  26. data/tracks/clojure/exercises/say/src/say.clj +1 -1
  27. data/tracks/clojure/exercises/series/src/series.clj +1 -1
  28. data/tracks/clojure/exercises/sublist/src/sublist.clj +1 -1
  29. data/tracks/clojure/exercises/two-fer/src/two_fer.clj +1 -1
  30. data/tracks/clojure/exercises/word-count/src/word_count.clj +1 -1
  31. data/tracks/ecmascript/config.json +12 -0
  32. data/tracks/ecmascript/exercises/reverse-string/README.md +42 -0
  33. data/tracks/ecmascript/exercises/reverse-string/example.js +9 -0
  34. data/tracks/ecmascript/exercises/reverse-string/package.json +70 -0
  35. data/tracks/ecmascript/exercises/reverse-string/reverse-string.spec.js +33 -0
  36. data/tracks/erlang/config.json +11 -0
  37. data/tracks/erlang/exercises/armstrong-numbers/README.md +53 -0
  38. data/tracks/erlang/exercises/armstrong-numbers/rebar.config +30 -0
  39. data/tracks/erlang/exercises/armstrong-numbers/src/armstrong_numbers.app.src +9 -0
  40. data/tracks/erlang/exercises/armstrong-numbers/src/armstrong_numbers.erl +8 -0
  41. data/tracks/erlang/exercises/armstrong-numbers/src/example.erl +29 -0
  42. data/tracks/erlang/exercises/armstrong-numbers/test/armstrong_numbers_tests.erl +33 -0
  43. data/tracks/erlang/exercises/bracket-push/src/example.erl +1 -1
  44. data/tracks/erlang/exercises/isbn-verifier/src/example.erl +1 -1
  45. data/tracks/julia/config.json +12 -0
  46. data/tracks/julia/docs/ABOUT.md +3 -3
  47. data/tracks/julia/exercises/spiral-matrix/README.md +31 -0
  48. data/tracks/julia/exercises/spiral-matrix/example.jl +9 -0
  49. data/tracks/julia/exercises/spiral-matrix/runtests.jl +25 -0
  50. data/tracks/julia/exercises/spiral-matrix/spiral-matrix.jl +3 -0
  51. data/tracks/perl5/config.json +1 -0
  52. data/tracks/perl5/docs/ABOUT.md +4 -3
  53. data/tracks/perl6/config.json +1 -0
  54. data/tracks/powershell/config.json +1 -1
  55. data/tracks/python/exercises/hello-world/example.py +2 -5
  56. data/tracks/python/exercises/hello-world/hello_world.py +1 -1
  57. data/tracks/reasonml/.gitignore +1 -0
  58. data/tracks/reasonml/Makefile +6 -3
  59. data/tracks/reasonml/config.json +21 -0
  60. data/tracks/reasonml/exercises/anagram/src/Anagram.rei +1 -0
  61. data/tracks/reasonml/exercises/anagram/src/Example.re +10 -12
  62. data/tracks/reasonml/exercises/binary-search/src/BinarySearch.rei +1 -0
  63. data/tracks/reasonml/exercises/bob/src/Bob.rei +1 -0
  64. data/tracks/reasonml/exercises/change/src/Change.rei +2 -0
  65. data/tracks/reasonml/exercises/change/src/Example.re +16 -15
  66. data/tracks/reasonml/exercises/hello-world/src/HelloWorld.rei +1 -0
  67. data/tracks/reasonml/exercises/leap/src/Leap.rei +1 -0
  68. data/tracks/reasonml/exercises/pangram/README.md +21 -0
  69. data/tracks/reasonml/exercises/pangram/__tests__/Pangram_test.re +36 -0
  70. data/tracks/reasonml/exercises/pangram/bsconfig.json +30 -0
  71. data/tracks/reasonml/exercises/pangram/package.json +20 -0
  72. data/tracks/reasonml/exercises/pangram/src/Example.re +36 -0
  73. data/tracks/reasonml/exercises/pangram/src/Pangram.rei +1 -0
  74. data/tracks/reasonml/exercises/phone-number/.gitignore +6 -0
  75. data/tracks/reasonml/exercises/phone-number/README.md +43 -0
  76. data/tracks/reasonml/exercises/phone-number/__tests__/PhoneNumber_test.re +48 -0
  77. data/tracks/reasonml/exercises/phone-number/bsconfig.json +27 -0
  78. data/tracks/reasonml/exercises/phone-number/package-lock.json +5853 -0
  79. data/tracks/reasonml/exercises/phone-number/package.json +20 -0
  80. data/tracks/reasonml/exercises/phone-number/src/Example.re +13 -0
  81. data/tracks/reasonml/exercises/phone-number/src/PhoneNumber.rei +1 -0
  82. data/tracks/reasonml/exercises/raindrops/src/Raindrops.rei +1 -0
  83. data/tracks/reasonml/exercises/rna-transcription/src/Example.re +13 -6
  84. data/tracks/reasonml/exercises/rna-transcription/src/RnaTranscription.rei +13 -0
  85. data/tracks/reasonml/exercises/run-length-encoding/src/RunLengthEncoding.rei +2 -0
  86. data/tracks/reasonml/exercises/space-age/__tests__/SpaceAge_test.re +8 -8
  87. data/tracks/reasonml/exercises/space-age/src/Example.re +3 -5
  88. data/tracks/reasonml/exercises/space-age/src/SpaceAge.rei +11 -0
  89. data/tracks/reasonml/exercises/word-count/src/WordCount.rei +1 -0
  90. data/tracks/sml/config.json +1 -0
  91. data/tracks/swift/.gitignore +5 -3
  92. data/tracks/swift/.travis.yml +8 -1
  93. data/tracks/swift/Package.swift +70 -11
  94. data/tracks/swift/exercises/atbash-cipher/Package.swift +1 -1
  95. data/tracks/swift/exercises/atbash-cipher/Sources/{Atbash.swift → AtbashCipher.swift} +0 -0
  96. data/tracks/swift/exercises/atbash-cipher/Sources/{AtbashExample.swift → AtbashCipherExample.swift} +1 -1
  97. data/tracks/swift/exercises/atbash-cipher/Tests/{AtbashTests/AtbashTests.swift → AtbashCipherTests/AtbashCipherTests.swift} +11 -11
  98. data/tracks/swift/exercises/atbash-cipher/Tests/LinuxMain.swift +2 -2
  99. data/tracks/swift/exercises/custom-set/Sources/CustomSetExample.swift +6 -2
  100. data/tracks/swift/exercises/poker/Sources/PokerExample.swift +2 -2
  101. metadata +49 -14
  102. data/tracks/clojure/docs/ABOUT.org +0 -24
  103. data/tracks/clojure/docs/INSTALLATION.org +0 -26
  104. data/tracks/clojure/docs/LEARNING.org +0 -35
  105. data/tracks/clojure/docs/RESOURCES.org +0 -9
  106. data/tracks/swift/.swift-version +0 -1
  107. data/tracks/swift/allProjects.xcworkspace.source/contents.xcworkspacedata +0 -4
  108. data/tracks/swift/allProjects.xcworkspace.source/xcshareddata/xcschemes/AllTest.xcscheme +0 -46
  109. data/tracks/swift/allProjectsPopulateWorkspace.sh +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8ba749e7d72c728ef66d3ae7e4172a0a24063de
4
- data.tar.gz: a23cb78cfda6299e50baacaf47590e14b46c0d56
3
+ metadata.gz: 706da02c4c4f09afe346807e4ff36e9a50753bb2
4
+ data.tar.gz: d77088f03e5550c99f07516b0c170876af7148df
5
5
  SHA512:
6
- metadata.gz: 224ce7c0af67cb3ff9896e1b578918e6e0a46f0588e6dc9ea0cab3fbbf661162ee4e6394233096d2a1597e949688573324c6dd05cf2bd7fa0b0678d73245377a
7
- data.tar.gz: e640bf79b918cd47f365955731fb8f197f524e0b9309f54b57d2a806bece389707e8a94dd80317f2379bfd667fb94202c6e12e270de91394268b43bdfe40494e
6
+ metadata.gz: 12eb93cab8231e066f465388d5311a7ad0cc2deb1eced143d05fb77fb4e37c458faf60c43baca9871fa96162319d003463d08e37290e2124be5a82016b0fc952
7
+ data.tar.gz: 2c0df862a40b1648781cc844f1c94445426c2b997e0d064ca4d643f8c3915cbf5f41323697b399bdb68f88fd561981efce0d96e562489cfa03459016533624e4
@@ -1,3 +1,3 @@
1
1
  module Trackler
2
- VERSION = "2.2.1.175"
2
+ VERSION = "2.2.1.176"
3
3
  end
@@ -7,6 +7,7 @@
7
7
  "slug": "hello-world",
8
8
  "uuid": "1378910d-9bec-4217-bd40-07a8967fa3ad",
9
9
  "core": false,
10
+ "auto_approve": true,
10
11
  "unlocked_by": null,
11
12
  "difficulty": 1,
12
13
  "topics": null
@@ -0,0 +1,13 @@
1
+ [Clojure](http://clojure.org) is a dynamic programming language that targets the Java Virtual Machine (JVM).
2
+ Designed as a general purpose language, Clojure combines the approachability of a scripting language with a robust infrastructure for multithreaded programming.
3
+
4
+ Clojure is predominantly a functional programming language, and features a rich set of immutable, persistent [data structures](http://clojure.org/data_structures).
5
+
6
+ Clojure is open source, and information about contributing to the language [can be found here](http://clojure.org/contributing).
7
+
8
+ Rich Hickey, the creator of Clojure, wanted a modern Lisp for functional programming, symbiotic with the established Java platform, and designed for concurrency; thus, Clojure was born.
9
+
10
+ Here are a couple quotes that exemplify the goals of Clojure:
11
+
12
+ * _Good design is not about making grand plans, but about taking things apart._
13
+ * _Programming is not about typing...it's about thinking._
@@ -0,0 +1,21 @@
1
+ # Installation
2
+
3
+ ## Installing Leiningen
4
+ The simplest approach to setting up a Clojure environment is to install the build tool [Leiningen](https://github.com/technomancy/leiningen) which will provide access to a REPL (Read Eval Print Loop) for interactive development and allow you to run Clojure code.
5
+
6
+ ### Linux and Windows
7
+ For installation instructions on most platforms see: [Leiningen installation](https://github.com/technomancy/leiningen#installation).
8
+
9
+ ### Homebrew for Mac OS X
10
+ Update your Homebrew:
11
+ ``` bash
12
+ $ brew update
13
+ ```
14
+
15
+ Install Leiningen:
16
+ ``` bash
17
+ $ brew install leiningen
18
+ ```
19
+
20
+ ### Installing the standalone JAR
21
+ Alternatively you can download the latest stable release jar file from [clojure.org/downloads](http://clojure.org/community/downloads) which contains everything required to run Clojure code and provides a basic REPL.
@@ -0,0 +1,29 @@
1
+ # Learning
2
+
3
+ Exercism provides exercises and feedback but can be difficult to jump into for those learning Clojure for the first time.
4
+
5
+ These resources can help you get started:
6
+
7
+ ## References
8
+ - [Clojure.org](http://clojure.org) The official language website.
9
+ - [ClojureDocs](https://clojuredocs.org) A repository of language references and examples by function or keyword.
10
+ - [Grimoire](http://conj.io) Community combined cheatsheet and examples.
11
+
12
+ ## Exercises and Tutorials
13
+ - [4Clojure](http://www.4clojure.com) A resource to help fledgling clojurians learn the language through interactive problems.
14
+ - [Clojure Katas](http://clojurekatas.org) A set of problems to help you get your hands dirty with Clojure.
15
+ - [Wonderland Clojure Katas](https://github.com/gigasquid/wonderland-clojure-katas) Clojure Katas inspired by Alice in Wonderland.
16
+ - [Parens of the Dead](http://www.parens-of-the-dead.com) A screencast series of zombie-themed games written with Clojure and ClojureScript.
17
+ - [Clojure Koans](http://clojurekoans.com) ([online](http://clojurescriptkoans.com)) Exercises meant to initiate you to the mysteries of the Clojure language.
18
+
19
+ ## Community
20
+ - [ClojureBridge](http://www.clojurebridge.org) Aims to increase diversity within the Clojure community by offering free, beginner-friendly Clojure programming workshops for women.
21
+ - [Planet Clojure](http://planet.clojure.in) Clojure blog aggregator.
22
+ - [Clojure Gazette](http://www.clojuregazette.com) A free, weekly email to inspire Clojure programmers.
23
+ - [Clojure Weekly](http://reborg.tumblr.com) A weekly collection of Clojure topics.
24
+
25
+ ## Books
26
+ - [Living Clojure](http://shop.oreilly.com/product/0636920034292.do) by Carin Meier
27
+ - [Clojure for the Brave and True](http://www.braveclojure.com) by Daniel Higginbotham
28
+ - [The Joy of Clojure](https://www.manning.com/books/the-joy-of-clojure-second-edition) by Michael Fogus and Chris Houser
29
+ - [Clojure Applied](https://pragprog.com/book/vmclojeco/clojure-applied) by Ben Vandgrift and Alex Miller
@@ -0,0 +1,9 @@
1
+ # Resources
2
+
3
+ ## Recommended Learning Resources
4
+ There are some great resources available to help you get started
5
+ learning Clojure; here is a short list.
6
+ - [Learn Clojure](http://learn-clojure.com/)
7
+ - [Clojure Docs](https://clojuredocs.org/)
8
+ - [Brave Clojure](http://www.braveclojure.com/)
9
+ - [4Clojure](https://www.4clojure.com/)
@@ -1,27 +1,23 @@
1
- #+TITLE: Tests
1
+ # Tests
2
2
 
3
- A Clojure REPL allows you to easily run code and get immediate feedback and can
4
- also be used to run tests.
3
+ A Clojure REPL allows you to easily run code and get immediate feedback and can also be used to run tests.
5
4
 
6
- * Leiningen
7
- To open a REPL using Leiningen change to the directory containing the
8
- exercise and run:
9
- #+BEGIN_SRC bash
5
+ ## Leiningen
6
+ To open a REPL using Leiningen change to the directory containing the exercise and run:
7
+ ``` bash
10
8
  $ lein repl
11
- #+END_SRC
9
+ ```
12
10
 
13
- Once you are ready to work on an exercise and have created a file to hold your
14
- solution (such as =bob.clj=) you can run the tests using
15
- ~#'clojure.test/run-tests~ [[http://clojure.github.io/clojure/clojure.test-api.html#clojure.test/run-tests][as described here]].
11
+ Once you are ready to work on an exercise and have created a file to hold your solution (such as `bob.clj`) you can run the tests using `clojure.test/run-tests` [as described here](http://clojure.github.io/clojure/clojure.test-api.html#clojure.test/run-tests).
16
12
 
17
- First, =require= the test namespace:
18
- #+BEGIN_SRC clojure
13
+ First, `require` the test namespace:
14
+ ``` clojure
19
15
  => (require 'bob-test)
20
16
  nil
21
- #+END_SRC
17
+ ```
22
18
 
23
- Then call =run-tests= on =bob-test=:
24
- #+BEGIN_SRC clojure
19
+ Then call `run-tests` on `bob-test`:
20
+ ``` clojure
25
21
  => (clojure.test/run-tests 'bob-test)
26
22
 
27
23
  Testing bob-test
@@ -29,26 +25,25 @@ Testing bob-test
29
25
  Ran 14 tests containing 14 assertions.
30
26
  0 failures, 0 errors.
31
27
  {:test 14, :pass 14, :fail 0, :error 0, :type :summary}
32
- #+END_SRC
28
+ ```
33
29
 
34
- To run a exercise's tests with Leiningen, simply call:
35
- #+BEGIN_SRC bash
30
+ To run an exercise's tests with Leiningen, simply call:
31
+ ``` bash
36
32
  $ lein test
37
- #+END_SRC
38
- #+BEGIN_EXAMPLE
33
+
39
34
  lein test bob-test
40
35
 
41
36
  Ran 14 tests containing 14 assertions.
42
37
  0 failures, 0 errors.
43
- #+END_EXAMPLE
38
+ ```
44
39
 
45
- * Standalone JAR
40
+ ## Standalone JAR
46
41
  To open a REPL using the standalone JAR file (assuming Clojure 1.8.0) run:
47
- #+BEGIN_SRC bash
42
+ ``` bash
48
43
  $ java -cp clojure-1.8.0.jar clojure.main
49
- #+END_SRC
44
+ ```
50
45
 
51
46
  To execute a file use:
52
- #+BEGIN_SRC bash
47
+ ``` bash
53
48
  $ java -cp clojure-1.8.0.jar clojure.main bob_test.clj
54
- #+END_SRC
49
+ ```
@@ -1,5 +1,5 @@
1
1
  (ns anagram)
2
2
 
3
- (defn anagrams-for [] ;; <- arglist goes here
3
+ (defn anagrams-for [word prospect-list] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns armstrong-numbers)
2
2
 
3
- (defn armstrong? [n] ;; <- arglist goes here
3
+ (defn armstrong? [num] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -2,7 +2,7 @@
2
2
 
3
3
  (defn verse
4
4
  "Returns the nth verse of the song."
5
- [n])
5
+ [num])
6
6
 
7
7
  (defn sing
8
8
  "Given a start and an optional end, returns all verses in this interval. If
@@ -1,5 +1,5 @@
1
1
  (ns bob)
2
2
 
3
- (defn response-for [] ;; <- arglist goes here
3
+ (defn response-for [s] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,13 +1,13 @@
1
1
  (ns clock)
2
2
 
3
- (defn clock->string [] ;; <- arglist goes here
3
+ (defn clock->string [clock] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
6
6
 
7
- (defn clock [] ;; <- arglist goes here
7
+ (defn clock [hours minutes] ;; <- arglist goes here
8
8
  ;; your code goes here
9
9
  )
10
10
 
11
- (defn add-time [] ;; <- arglist goes here
11
+ (defn add-time [clock time] ;; <- arglist goes here
12
12
  ;; your code goes here
13
13
  )
@@ -1,5 +1,5 @@
1
1
  (ns collatz-conjecture)
2
2
 
3
- (defn collatz [n] ;; <- arglist goes here
3
+ (defn collatz [num] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns etl)
2
2
 
3
- (defn transform [] ;; <- arglist goes here
3
+ (defn transform [source] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns flatten-array)
2
2
 
3
- (defn flatten [] ;; <- arglist goes here
3
+ (defn flatten [arr] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,13 +1,13 @@
1
1
  (ns grade-school)
2
2
 
3
- (defn grade [] ;; <- arglist goes here
3
+ (defn grade [school grade] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
6
6
 
7
- (defn add [] ;; <- arglist goes here
7
+ (defn add [school name grade] ;; <- arglist goes here
8
8
  ;; your code goes here
9
9
  )
10
10
 
11
- (defn sorted [] ;; <- arglist goes here
11
+ (defn sorted [school] ;; <- arglist goes here
12
12
  ;; your code goes here
13
13
  )
@@ -1,5 +1,5 @@
1
1
  (ns hamming)
2
2
 
3
- (defn distance [] ; <- arglist goes here
4
- ;; your code goes here
3
+ (defn distance [strand1 strand2] ; <- arglist goes here
4
+ ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns leap)
2
2
 
3
- (defn leap-year? [] ;; <- argslist goes here
3
+ (defn leap-year? [year] ;; <- argslist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,9 +1,9 @@
1
1
  (ns nucleotide-count)
2
2
 
3
- (defn count [] ;; <- Arglist goes here
3
+ (defn count [nucleotide strand] ;; <- Arglist goes here
4
4
  ;; your code goes here
5
5
  )
6
6
 
7
- (defn nucleotide-counts [] ;; <- Arglist goes here
7
+ (defn nucleotide-counts [strand] ;; <- Arglist goes here
8
8
  ;; your code goes here
9
9
  )
@@ -1,13 +1,13 @@
1
1
  (ns phone-number)
2
2
 
3
- (defn number [] ;; <- arglist goes here
3
+ (defn number [num-string] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
6
6
 
7
- (defn area-code [] ;; <- arglist goes here
7
+ (defn area-code [num-string] ;; <- arglist goes here
8
8
  ;; your code goes here
9
9
  )
10
10
 
11
- (defn pretty-print [] ;; <- arglist goes here
11
+ (defn pretty-print [num-string] ;; <- arglist goes here
12
12
  ;; your code goes here
13
13
  )
@@ -1,5 +1,5 @@
1
1
  (ns reverse-string)
2
2
 
3
- (defn reverse-string [] ;; <- arglist goes here
3
+ (defn reverse-string [s] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns rna-transcription)
2
2
 
3
- (defn to-rna [] ;; <- arglist goes here
3
+ (defn to-rna [dna] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -4,10 +4,10 @@
4
4
  ;; your code goes here
5
5
  )
6
6
 
7
- (defn robot-name [] ;; <- arglist goes here
7
+ (defn robot-name [robot] ;; <- arglist goes here
8
8
  ;; your code goes here
9
9
  )
10
10
 
11
- (defn reset-name [] ;; <- arglist goes here
11
+ (defn reset-name [robot] ;; <- arglist goes here
12
12
  ;; your code goes here
13
13
  )
@@ -2,10 +2,10 @@
2
2
 
3
3
  (defn run-length-encode
4
4
  "encodes a string with run-length-encoding"
5
- [s]
5
+ [plain-text]
6
6
  )
7
7
 
8
8
  (defn run-length-decode
9
9
  "decodes a run-length-encoded string"
10
- [s]
11
- )
10
+ [cipher-text]
11
+ )
@@ -1,5 +1,5 @@
1
1
  (ns say)
2
2
 
3
- (defn number [] ;; <- arglist goes here
3
+ (defn number [num] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns series)
2
2
 
3
- (defn slices [string n] ;; <- arglist goes here
3
+ (defn slices [string length] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns sublist)
2
2
 
3
- (defn classify [] ;; <- arglist goes here
3
+ (defn classify [list1 list2] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns two-fer)
2
2
 
3
- (defn two-fer [] ;; <- arglist goes here
3
+ (defn two-fer [name] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -1,5 +1,5 @@
1
1
  (ns word-count)
2
2
 
3
- (defn word-count [] ;; <- arglist goes here
3
+ (defn word-count [s] ;; <- arglist goes here
4
4
  ;; your code goes here
5
5
  )
@@ -30,6 +30,18 @@
30
30
  "logic"
31
31
  ]
32
32
  },
33
+ {
34
+ "slug": "reverse-string",
35
+ "uuid": "e84c97eb-dbec-487c-b99f-ae9924e16293",
36
+ "core": false,
37
+ "unlocked_by": "leap",
38
+ "difficulty": 2,
39
+ "topics": [
40
+ "for",
41
+ "loops",
42
+ "strings"
43
+ ]
44
+ },
33
45
  {
34
46
  "slug": "rna-transcription",
35
47
  "uuid": "342974d6-9083-4754-a6c5-ed1e19e40ec5",
@@ -0,0 +1,42 @@
1
+ # Reverse String
2
+
3
+ Reverse a string
4
+
5
+ For example:
6
+ input: "cool"
7
+ output: "looc"
8
+
9
+ ## Setup
10
+
11
+ Go through the setup instructions for ECMAScript to
12
+ install the necessary dependencies:
13
+
14
+ http://exercism.io/languages/ecmascript
15
+
16
+ ## Requirements
17
+
18
+ Install assignment dependencies:
19
+
20
+ ```bash
21
+ $ npm install
22
+ ```
23
+
24
+ ## Making the test suite pass
25
+
26
+ Execute the tests with:
27
+
28
+ ```bash
29
+ $ npm test
30
+ ```
31
+
32
+ In the test suites all tests but the first have been skipped.
33
+
34
+ Once you get a test passing, you can enable the next one by
35
+ changing `xtest` to `test`.
36
+
37
+ ## Source
38
+
39
+ Introductory challenge to reverse an input string [https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb](https://medium.freecodecamp.org/how-to-reverse-a-string-in-javascript-in-3-different-ways-75e4763c68cb)
40
+
41
+ ## Submitting Incomplete Solutions
42
+ It's possible to submit an incomplete solution so you can see how others have completed the exercise.