useful
useful copied to clipboard
Some Clojure functions we use all the time, and so can you.
For backwards/forwards compatibility between implementations, adds a trailing newline to the string to match the behaviour of the sun.misc.BASE64Decoder. This effectively sets the minimum JVM to Java 8, at least...
`((ignoring-nils +) nil nil)` returns 0, but `((ignoring-nils +) nil nil nil)` returns nil. Is this difference intentional? I figure they should both return 0.
Works with Clojure 1.8/1.10.1 and Java 8/12 --------------------------- ``` lein test flatland._bootstrap ---------------------------------- Clojure 1.10.1 Java 12 ---------------------------------- lein test flatland.useful.bean-test lein test flatland.useful.cli-test lein test flatland.useful.compress-test lein test flatland.useful.config-test...
On Java 11 and [12-ea](https://travis-ci.org/clj-commons/useful/jobs/464220022#L487): ``` java.lang.ClassNotFoundException: sun.misc.BASE64Decoder, compiling:(flatland/useful/compress.clj:1:1) ``` `java.util.Base64` would be good, but it's only available on Java 8 onwards. Probably still the best choice, but would mean...
Previously this would return nil if three or more arguments were provided and all were nil. The current behaviour looks like a bug, but changing this could potentially be breaking...
I added a function named `=?` which mirrors the EquivPred stuff that Rich added to clojure the other day. I ran a benchmark on some simple tasks using `=?` compared...
I am a Debian developer packaging Clojure and Leiningen. Leiningen2 depends on this project and I'd like to package it. Could you please display copyright holders (developers) for this work?...
@amalloy Should useful.config also work for non-resources? If so, we could use it for lazybot and get rid of clj-config entirely.