Last active
September 7, 2021 03:45
-
-
Save PEZ/447fba2735f190ec4786a4b2cf7d5b76 to your computer and use it in GitHub Desktop.
Intro to Lists – Rich 4Clojure Problem 4 – See: https://github.com/PEZ/rich4clojure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns rich4clojure.elementary.problem-004 | |
| (:require [hyperfiddle.rcf :refer [tests]])) | |
| ;; = Intro to Lists = | |
| ;; By 4Clojure user: dbyrne | |
| ;; Difficulty: Elementary | |
| ;; | |
| ;; Lists can be constructed with either a function or a | |
| ;; quoted form. | |
| ;; | |
| ;; Note: You can't redefine `__` to solve this problem. | |
| ;; You will need to replace `__` in the `(tests ...)` | |
| ;; form. | |
| (def __ :tests-will-fail) | |
| (comment | |
| ) | |
| (tests | |
| (list __) := '(:a :b :c)) | |
| ;; To participate, fork: | |
| ;; https://github.com/PEZ/rich4clojure | |
| ;; Post your solution below, please! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment