Skip to content

Commit d9b3a01

Browse files
add objection image for print object
1 parent a817589 commit d9b3a01

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
89.2 KB
Loading

notebooks/clojure/print_object/remove_extraneous.clj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828

2929
(async/chan)
3030

31+
;; ![Objection!](objection.jpg)
32+
33+
3134
;; Functions are printed as objects
3235

3336
(fn [x] x)
@@ -96,6 +99,7 @@
9699
(format-class-name (remove-extraneous (class-name ((fn [] (fn [y] y))))))
97100

98101
;; So short, so sweet.
102+
;; If it's a function, why call it an object?
99103

100104
(defn object-str ^String [x]
101105
(str (if (fn? x) "#fn" "#object")

notebooks/code_interview/beating/with_stupid_stuff/z_combinator_gambit.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292

9393
;; > That's a confusing way to write it
9494

95-
;; Quite right, because it's not obvious what (SELF SELF) is.
95+
;; Quite right, because it's not obvious what `(SELF SELF)` is.
9696
;; We need to extract it out.
9797
;; What we want is:
9898

0 commit comments

Comments
 (0)