Skip to content

Instantly share code, notes, and snippets.

@brettrowberry
Created October 18, 2021 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brettrowberry/4b1f394d1d3e161eb832f9a7fc7fbeed to your computer and use it in GitHub Desktop.
Save brettrowberry/4b1f394d1d3e161eb832f9a7fc7fbeed to your computer and use it in GitHub Desktop.
;; These are equivalent expressions showing how to attempt to access a value:
(get {:a \a} :a)
({:a \a} :a)
(:a {:a \a})
;; These are equivalent ways of trying and supplying a default value:
(get {:a \a} :b \b)
({:a \a} :b \b)
(:b {:a \a} \b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment