formative icon indicating copy to clipboard operation
formative copied to clipboard

add getf, getf1 to help with nested values?

Open jkk opened this issue 10 years ago • 0 comments

(getf :foo.bar {:foo {:bar 1}}) => 1 (getf "foo[bar]" {:foo {:bar 1}}) => 1 (getf "foo[bar]" {"foo" {"bar" 1}}) => 1 (getf "foo[bar]" {"foo[bar]" 1}) => 1

For :flatten fields? (getf "foo[bar]" {"foo-bar" 1}) (getf "foo" {"foo-bar" 1 "foo-qux" 2}) => {"bar" 1 "qux" 2"}) ???

jkk avatar Aug 29 '13 16:08 jkk