DEV Community

Discussion on: Fallback on maps lookup on Clojure (or a gentle introduction to macros)

Collapse
 
sava4 profile image
Sava4 • Edited

This example should return "Free Agent" and not nil
checked in the REPL:

(:team a-qb "Free Agent") ; => "New York Jets"
(:team another-qb "Free Agent") ; => nil 

(a-qb :team "Free Agent") ; => "New York Jets"
(another-qb :team "Free Agent") ; => nil
Collapse
 
rodrigoflores profile image
Rodrigo Flores

Thanks, I've fixed them :)