Inspired by the utility library underscore.js, we've added a bunch of new utility functions to Sprig. Many of these are designed to work on dict and list types (and for the time being, on tuple as well).
Highlights:
semverandsemverComparewere added by popular demand.listreplacestuplejoinwas fixed- Added:
- first
- last
- intial
- rest
- prepend
- append
- toString
- toStrings
- sortAlpha
- reverse
- coalesce
- pluck
- pick
- compact
- keys
- omit
- uniq
- has
- without
Complete changes:
Add semver and semverCompare. 23597e5f6ad0e4d590e71314bfd0251a4a3cf849 (Matt Butcher) Add without and has functions. 1f3c30139e7139a65b5d6b7f31284d401e5e2487 (Matt Butcher) Add uniq function. a1c06b6a55acfde86a11947008b0393960879665 (Matt Butcher) Only install glide during 'make setup' if not already installed. 586619b4e928bd3cca0a46dac8ac6f2c003fd66a (Matt Butcher) Add setup target to makefile 5db91714c3ebb01eabc8ae26b7d584d6a01c1d30 (Matt Butcher) Clone the generic map instead of acting directly on it. 10f3ff00763f71fc0a79e770031724db83675929 (Matt Butcher) Refactor into multiple files. 9e5d6d81df8c6208941133daaba1134065a477e8 (Matt Butcher) Add pick and omit functions. 44e3642c7dc1354ad15c53fbe4374af4878e765c (Matt Butcher) Add keys function. 427e90187e0902bc04b64167610f2da7ba26e0e1 (Matt Butcher) Add 'compact' function. 2009c2546db608c737012557c9d3e836468f0423 (Matt Butcher) Add 'pluck' function df7a54437d02c7efc12aeb9a44227ca1ae76f861 (Matt Butcher) Add reverse and coalesce functions. 73a59523c1a8202c02786c296731ef5ce1832ddc (Matt Butcher) Add toString, toStrings, and sortAlpha. df3624ede7d0c68697394da73bf4434bdfce4d3c (Matt Butcher) Add list, first, last, initial, rest, prepend, and append. 3e101afd8a97715f7e0dbd41c9988ad6fcaa2d19 (Matt Butcher) Allow 'join' to take other array/slice types. 713da5382fb1da2b725160e68c0735d3cd196be5 (Matt Butcher)