You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varbob=m.hash_map("first","Bob","last","Smith"),mary=m.hash_map("first","Mary","last","Jane"),result=m.map("first",m.vector(bob,mary));console.log(result);// throws exception "TypeError: undefined is not a function"expect(m.clj_to_js(result)).to.eql(["Bob","Mary"]);// converting to JS also throws
It also fails if you map over a plain [bob, mary] as in the docs.
For now, I'll just use a function (val) { return m.get("first"); } function as a workaround, just wanted to let you know the docs are inaccurate.
The text was updated successfully, but these errors were encountered:
Taken from the docs (and converted to JS):
It also fails if you map over a plain
[bob, mary]
as in the docs.For now, I'll just use a
function (val) { return m.get("first"); }
function as a workaround, just wanted to let you know the docs are inaccurate.The text was updated successfully, but these errors were encountered: