Created
January 16, 2024 22:44
-
-
Save nathanmarz/53892c85835ea2a29fd0c8169343ce74 to your computer and use it in GitHub Desktop.
foreign set query with Rama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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