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 user | |
(:require [clojure.string :as string])) | |
(defn ⁵ | |
"Returns n to the fifth power. | |
Note we use the UTF-character of superscript-5 as function name, because we can. ;-)" | |
[n] | |
(let [sq (* n n)] | |
(* sq sq n))) |
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
(future | |
(try | |
(println "inside future body") | |
(assert false) ;; | |
(catch Exception e | |
(println "error" (.getMessage e))))) ;; no error printed | |
(try ;; not in a future, but just normal | |
(println "inside future body") |
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 my.namespace.uppy | |
(:require [re-frame.core :as rf] | |
[reagent.core :as r] | |
[cs2.handlers :refer [debug-panel]] | |
[cs2.i18n :refer [tr]] | |
[clojure.string :as string] | |
[cs2.util :as util] | |
[cs2.components.widgets.modal :as modal] | |
[taoensso.timbre :refer [debug info error fatal warn]])) |
OlderNewer