formative
formative copied to clipboard
add getf, getf1 to help with nested values?
(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"}) ???