@lynaghk just [].map.call(NodeList, fn)
-
-
-
@andywinterman Actually, correct answer is: (extend-type js/NodeList ISeqable (-seq [nl] (array-seq nl 0))) -
@lynaghk So I don't clojurescript, but that looks like you're extending the DOM? I feel compelled to tsk at you.https://developer.mozilla.org/en-US/docs/Web/API/NodeList … -
@andywinterman Extending Clojure's polymorphic dispatch, not DOM. Think Java's `implements`, but by you instead of authors (and namespaced).
End of conversation
New conversation -
-
-
@lynaghk NodeLists can definitely bite. They're alive!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@lynaghk Oh man, I cut my functional programming teeth with Haskell. You wouldn't believe the amount of state-in-your-closures bugs I write.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.