Skip to content

Instantly share code, notes, and snippets.

View eliascotto's full-sized avatar

Elia Scotto eliascotto

View GitHub Profile
@danownsthisspace
danownsthisspace / stratch.clj
Created November 21, 2021 15:05
A function wrapper that ensures that a function can only be called once
(ns scratch.core)
(defn say-hi [username]
(let [s (str "hello, " username)]
(Thread/sleep (rand 100))
(println s)
s))
(comment (say-hi "Steve"))