Skip to content

Instantly share code, notes, and snippets.

@nathanmarz
Created January 16, 2024 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanmarz/53892c85835ea2a29fd0c8169343ce74 to your computer and use it in GitHub Desktop.
Save nathanmarz/53892c85835ea2a29fd0c8169343ce74 to your computer and use it in GitHub Desktop.
foreign set query with Rama
;; in module code include this function:
(defn view-with-arg [view-fn arg]
(fn [v] (view-fn v arg)))
;; then foreign queries can be like this:
(foreign-select [(keypath :some-kid) (view (view-fn-with-arg contains? :some-swing))] swing-sessions-pstate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment