Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmulti test-url #(get % "country"))
- (defmethod test-url "US" [data]
- (let [{country "country"} data]
- (str country "US")))
- (defmethod test-url "UK" [data]
- (str data "UK"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement