Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. Dollar

Dollar

MITSwift10.0.0

A functional tool-belt for Swift providing utility methods for arrays, dictionaries, and functions without extending built-in objects.

Visit WebsiteGitHubGitHub
4.2k stars361 forks0 contributors

What is Dollar?

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.

Target Audience

Swift developers who need efficient and expressive utilities for data transformation, functional programming enthusiasts, and those migrating from JavaScript who miss libraries like Lodash.

Value Proposition

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.

Overview

A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript

Use Cases

Best For

  • Manipulating and transforming arrays in Swift applications
  • Implementing functional programming patterns in Swift codebases
  • Simplifying dictionary merging, picking, and omitting operations
  • Creating reusable utility functions with currying and composition
  • Migrating JavaScript Lodash/Underscore logic to Swift
  • Performing common mathematical operations like GCD, LCM, and factorial

Not Ideal For

  • Swift projects that already rely extensively on Swift's native functional features like map, filter, and reduce, avoiding additional dependencies
  • Teams using SwiftUI or Combine frameworks, which integrate functional patterns natively and may render Dollar redundant
  • Applications with strict performance or size constraints where minimizing external library overhead is critical

Pros & Cons

Pros

Comprehensive Functional Toolkit

Offers over 50 utility functions for arrays, dictionaries, and functions, including niche operations like chunk, curry, and memoize, reducing boilerplate code.

Familiar API for Migrants

Directly mirrors JavaScript libraries like Lo-Dash and Underscore.js, easing the transition for developers moving from web to Swift ecosystems.

Non-Invasive Design Philosophy

Avoids extending Swift's built-in types, preventing conflicts and promoting modular, clean code organization as stated in the README.

Chainable Interface for Readability

Supports fluent method chaining via Dollar.chain(), enabling expressive data transformation pipelines similar to Lodash's flow.

Cons

Swift Version Fragmentation

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.

Redundant with Swift Evolution

As Swift's standard library grows, some utilities (e.g., flatMap) may become obsolete, risking unnecessary bloat in modern codebases.

Limited Ecosystem Integration

Focuses solely on functional utilities without support for newer Swift paradigms like async/await or SwiftUI, limiting its relevance in full-stack apps.

Open Source Alternative To

Dollar is an open-source alternative to the following products:

U
Underscore.js

Underscore.js is the same as Underscore, a JavaScript library offering utility functions for common programming tasks in a functional style.

L
Lo-Dash

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.

Frequently Asked Questions

Quick Stats

Stars4,234
Forks361
Contributors0
Open Issues3
Last commit2 years ago
CreatedSince 2014

Tags

#functional-programming#function-composition#swift-language#utility-library#array-manipulation#swift#xcode#lodash-alternative

Built With

S
Swift

Links & Resources

Website

Included in

iOS51.7kSwift26.0k
Auto-fetched 1 day ago

Related Projects

Swift Algorithm ClubSwift Algorithm Club

Algorithms and data structures in Swift, with explanations!

Stars29,063
Forks4,931
Last commit1 year ago
SwifterSwiftSwifterSwift

A handy collection of more than 500 native Swift extensions to boost your productivity.

Stars15,229
Forks1,660
Last commit3 days ago
R.swiftR.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects

Stars9,550
Forks773
Last commit1 year ago
PeripheryPeriphery

A tool to identify unused code in Swift projects.

Stars6,179
Forks261
Last commit2 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub