Skip to content

Instantly share code, notes, and snippets.

@bhenry
Forked from aufrank/mapping_trouble.clj
Created September 7, 2011 18:30
Show Gist options
  • Save bhenry/1201326 to your computer and use it in GitHub Desktop.
Save bhenry/1201326 to your computer and use it in GitHub Desktop.
mapping trouble
(def nodes
{:k {:neighbors [:kaet] :activation 0.2}
:ae {:neighboars [:kaet] :activation 0.2}
:t {:neighbors [:kaet] :activation 0.2}
:kaet {:neighbors [:k :ae :t :cat] :activation 0.2}
:cat {:neighbors [:kaet] :activation 0.2}})
(map #(:activation (% nodes)) (-> nodes :kaet :neighbors))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment