wharf icon indicating copy to clipboard operation
wharf copied to clipboard

A Clojure library for transforming map keys.

Results 5 wharf issues
Sort by recently updated
recently updated
newest added

Given a string "IMEINumber", I want to get out "imei-number", but camel->dash expects title case: ``` (camel->dash "IMEINumber") => "I-M-E-I-Number" ``` Which is expected behaviour, as per the tests. Is...

It might be useful to split the conversion functions so that its easier to compose them and map over their results.

Current: ``` clojure (w/dash->upper-camel "i-foo") ;=> "" ``` Want: ``` clojure (w/dash->upper-camel "i-foo") ;=> "IFoo" ```

Current: ``` clojure (clojure.string/lower-case (w/camel->dash "SQLFoo")) ;=> "s-q-l-foo" ``` Want: ``` clojure (clojure.string/lower-case (w/camel->dash "SQLFoo")) ;=> "sql-foo" ``` This must remain the same: ``` clojure (clojure.string/lower-case (w/camel->dash "IFoo")) ;=> "i-foo"...