Created
February 25, 2022 14:02
-
-
Save pjstadig/768f17dcc66492c2b79836ca92c16745 to your computer and use it in GitHub Desktop.
Multimethods
This file contains 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 stadig.widget | |
(:require | |
[stadig.storage.methods :as storage])) | |
(defn store-widget | |
[storage-conn widget-name] | |
(storage/put storage-conn | |
"widgets" | |
widget-name | |
(pr-str {:type :widget :name widget-name}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment