Skip to content

Commit 3aba2b9

Browse files
comment as clojure code
1 parent bcfc1de commit 3aba2b9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

notebooks/code_interview/beating/with_stupid_stuff/z_combinator_gambit.clj

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,10 @@
130130

131131
;; > Well, it's a function! That much is clear...
132132

133-
#_((REV-LOGIC REV-LOGIC) [1 2 3 4 5])
133+
;; ```clojure
134+
;; ((REV-LOGIC REV-LOGIC) [1 2 3 4 5])
135+
;; ```
136+
;; **Error**
134137

135138
;; But it doesn't work, because `(REV-LOGIC REV-LOGIC) =/= REV-LOGIC.`
136139
;; Let's try something easier:
@@ -204,8 +207,10 @@
204207

205208
;; `LOGIC` is a function of itself, returning a function that acts on a value:
206209

207-
#_(LOGIC (fn SELF [VALUE]
208-
((FIXED FIXED) VALUE)))
210+
;; ```clojure
211+
;; (LOGIC (fn SELF [VALUE]
212+
;; ((FIXED FIXED) VALUE)))
213+
;; ```
209214

210215
;; > didn't you say that `(FIXED FIXED) = FIXED`?
211216

0 commit comments

Comments
 (0)