A functional tool-belt for Swift providing utility methods for arrays, dictionaries, and functions without extending built-in objects.
Dollar is a Swift library that provides a functional tool-belt of utility methods for working with arrays, dictionaries, and functions. It solves the problem of repetitive data manipulation code by offering a comprehensive set of helper functions similar to those found in JavaScript libraries like Lo-Dash, but designed specifically for Swift's type system.
Swift developers who need efficient and expressive utilities for data transformation, functional programming enthusiasts, and those migrating from JavaScript who miss libraries like Lodash.
Developers choose Dollar because it delivers a familiar functional programming experience without extending Swift's native types, ensuring compatibility and avoiding conflicts. Its extensive API covers common use cases with a clean, chainable interface.
A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers over 50 utility functions for arrays, dictionaries, and functions, including niche operations like chunk, curry, and memoize, reducing boilerplate code.
Directly mirrors JavaScript libraries like Lo-Dash and Underscore.js, easing the transition for developers moving from web to Swift ecosystems.
Avoids extending Swift's built-in types, preventing conflicts and promoting modular, clean code organization as stated in the README.
Supports fluent method chaining via Dollar.chain(), enabling expressive data transformation pipelines similar to Lodash's flow.
The README requires matching specific library versions to Xcode and Swift releases (e.g., version 9.0.0 for Xcode 11), complicating upgrades and maintenance.
As Swift's standard library grows, some utilities (e.g., flatMap) may become obsolete, risking unnecessary bloat in modern codebases.
Focuses solely on functional utilities without support for newer Swift paradigms like async/await or SwiftUI, limiting its relevance in full-stack apps.
Dollar is an open-source alternative to the following products:
Underscore.js is the same as Underscore, a JavaScript library offering utility functions for common programming tasks in a functional style.
Lo-Dash is a JavaScript utility library that provides modular methods for common programming tasks, offering performance optimizations and additional features compared to similar libraries.