Skip to content

Instantly share code, notes, and snippets.

View Orbots's full-sized avatar

Michael Alexander Ewert Orbots

View GitHub Profile
@Orbots
Orbots / component.cljs
Last active June 13, 2017 08:26
component entity system in clojurescript
;; component access, query and data
(ns forces.framework.component
)
;; support stuff
(defn dissoc-in
"Dissociates an entry from a nested associative structure returning a new
nested structure. keys is a sequence of keys. Any empty maps that result
will not be present in the new structure."
[m [k & ks :as keys]]