mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 05:36:11 +02:00
WIP
This commit is contained in:
parent
56f7613453
commit
6b6aba7358
8 changed files with 258 additions and 37 deletions
|
@ -112,9 +112,20 @@
|
|||
}))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Lenses Helpers
|
||||
;; Lenses & Helpers
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(defn dep-in
|
||||
[where link]
|
||||
{:pre [(vector? where) (vector? link)]}
|
||||
(l/lens
|
||||
(fn [s]
|
||||
(let [value (get-in s link)
|
||||
path (conj where value)]
|
||||
(get-in s path)))
|
||||
(fn [s f]
|
||||
(throw (ex-info "Not implemented" {})))))
|
||||
|
||||
(defn derive
|
||||
[a path]
|
||||
(l/focus-atom (l/in path) a))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue