Skip to content

How to do dict.get("key", "default") in hy? #2087

Answered by cloud11665
cloud11665 asked this question in Q&A
Discussion options

You must be logged in to vote

ok, nvm its (setv foo (obj.get "key" "default")) 😆

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@allison-casey
Comment options

@cloud11665
Comment options

@cloud11665
Comment options

@cloud11665
Comment options

@allison-casey
Comment options

Answer selected by cloud11665
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants