In clojurescript, when I combine two cards, I can do it like this:
(merge {:a 1} {:b 2})
How can I achieve a similar thing in Om where literals are used, something like this (which doesn't work):
(merge #js {:a 1} #js {:b 2})
You can combine them as usual and then use them clj->jsto convert the result to javascript:
clj->js
(clj->js (merge {:a 1} {:b 2}))
Source: https://habr.com/ru/post/1539119/More articles:How to manage large images in Python using OpenCV? - pythonGradle assembleDebug and preDexDebug do not work even for a new project - androidiOS Objective-C awaits asynchronous process - asynchronoushow to organize a large assembly using cmake - c ++Data access bits DwmRegisterThumbnail - c ++How does the POSIX tee command work? - shellHow to join the Urdu alphabet in C # - c #Associating a Laravel Form Form with Relationships - laravelTypeahead.js соответствует только началу слова - jqueryThread Safety and MEF Catalog - multithreadingAll Articles