awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
ankurp avatar

ankurp/Dollar

0
View on GitHub↗
4,240 星标·362 分支·Swift·MIT·8 次浏览www.dollarswift.org↗

Dollar

Dollar 是一个 Swift 函数式编程库,提供了一套用于集合操作、字符串处理、数学计算以及日期和时间管理的综合工具包。它作为过滤、聚合和重构数组及字典的实用工具集。

该项目实现了柯里化(currying)、记忆化(memoization)和函数组合等函数式编程模式。它还具备链式包装器接口,允许在提取最终结果之前按顺序应用多次数据转换。

该库涵盖了广泛的功能领域,包括文本清理和大小写转换、正则表达式操作,以及阶乘和除数等数学值的计算。它还包含用于解析 Unix 时间戳和计算相对时间偏移的工具。

该工具包通过泛型方法扩展了 Swift 标准库类型,以实现数据转换和聚合。

Features

  • Swift Collection Extensions - Extends Swift arrays and dictionaries with generic methods for advanced manipulation and transformation.
  • Transformation Chains - Wraps collections in a proxy object to apply multiple sequential transformations before extracting the final result.
  • Array Transformations - Maps array elements to new values or flattens nested collections into a single-level array.
  • Element Filtering - Provides predicate-based filtering to create subsets of arrays or remove empty values.
  • Collection Element Transformations - Maps, flattens, or chunks elements into new formats and structures using callback functions.
  • Collection Filtering - Creates new collections based on specific keys or by removing duplicate and empty values.
  • Collection Groupings - Organizes collection elements into dictionaries based on callback functions or frequency counts.
  • Dictionary Extraction and Cleaning - Extracts keys and values, merges dictionaries, or clones them while filtering specific keys.
  • Dictionary Manipulation Utilities - Creates shallow clones of dictionaries by picking or omitting keys and merging multiple dictionaries.
  • Dictionary Key Management - Provides utilities to extract dictionary keys and values or create clones by picking specific keys.
  • Dictionary Merging - Combines multiple dictionaries into one where newer values override previous ones for the same key.
  • Function Chaining - Implements function composition allowing the output of one function to feed as input into the next.
  • Function Currying - Implements functional patterns for currying and partial application to fix specific function arguments.
  • Functional Utility Libraries - Ships a collection of functional programming primitives and collection manipulation tools for Swift.
  • Generic Collection Utilities - Extends Swift standard library types with generic methods for type-safe data transformation and aggregation.
  • Element Search - Locates the first or last element, or the index of a value, that matches a condition.
  • Collection Wrappers - Implements a fluent, chainable wrapper interface for applying sequential transformations to data collections.
  • Function Currying - Implements function currying to transform functions to accept arguments individually through successive calls.
  • Swift String Manipulation Libraries - Offers a toolkit for sanitizing text and converting casing styles natively in Swift.
  • Swift String Processing Libraries - Provides a comprehensive toolkit for sanitizing, formatting, and transforming text strings in Swift.
  • Function Execution Wrappers - Provides wrappers to control function invocation, including executing a function once or applying memoization.
  • Functional Programming - Implements functional programming patterns including currying, memoization, and composition for Swift.
  • Functional Programming Wrappers - Implements functional programming patterns such as currying, partial application, and memoization to control logic execution.
  • Function Composition - Provides tools for combining multiple independent functions into a single composite execution pipeline.
  • Regex Pattern Matching - Provides regular expression operations to match patterns and extract substrings from text.
  • Collection Restructuring - Reorganizes data into new formats such as chunks, flat lists, transposed matrices, or grouped dictionaries.
  • Predicate-Based Filtering - Employs callback functions as predicates to isolate, search, and partition elements within arrays and dictionaries.
  • Array Set Operations - Computes intersections, unions, and differences between multiple arrays to find unique or shared values.
  • Collection Property Plucking - Extracts specific properties from every member of a collection into a new array.
  • Date and Time Libraries - Provides utilities for parsing, validating, and manipulating date and time values.
  • Date Object Creators - Provides utilities for generating date and time objects from Unix timestamps and relative helpers.
  • Collection Sum Calculators - Computes the minimum, maximum, or sum of values within a collection.
  • Ordered Collection Manipulations - Shuffles elements, creates ranges, or retrieves subsets from the start or end of a collection.
  • Text String Cleaning - Provides tools for cleaning string data by removing whitespace and splitting text into arrays.
  • Date and Time Utilities - Provides utility helpers for parsing Unix timestamps and calculating relative time offsets.
  • Regular Expression Utilities - Tests strings against patterns and extracts substrings using regular expression operations.
  • String Case Transformers - Provides utilities for converting text between different naming conventions and sanitizing input.
  • Casing Formatters - Converts strings between camelCase, kebab-case, snake_case, and Start Case formats.
  • Function Invocation Control - Controls function execution flow using currying, composition, and execution limits.
  • Collection Intersections - Identifies intersections and common elements shared across multiple collections.
  • Unix Epoch Conversions - Translates integer Unix timestamps and formatted strings into date objects.
  • Discrete Algorithm Implementations - Provides a set of discrete mathematical procedures for computing factorials, divisors, and random numeric sequences.
  • Discrete Math Utilities - Computes factorials, greatest common divisors, least common multiples, and generates random numbers.
  • Discrete Math Utility Libraries - Implements mathematical procedures for computing factorials, divisors, and random numeric sequences.
  • GCD and LCM Calculators - Includes calculators for the greatest common divisor and least common multiple of integers.
  • Integer Mathematical Utilities - Provides calculations for factorials, divisors, and random integer generation.
  • Number Sequence Generation - Creates arrays of numbers based on defined ranges, specific increments, or arbitrary sequences.
  • Numerical Sequence Generation - Generates arrays of numbers progressing from a start point to an end point.
  • Collection Partitioning - Shuffles, chunks, or partitions array elements into groups based on size or callback functions.
  • Data Structures - Functional tool-belt for Swift collections.
  • General Utilities - Functional programming utilities similar to Lo-Dash.

Star 历史

ankurp/dollar 的 Star 历史图表ankurp/dollar 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

ankurp/dollar 是做什么的?

Dollar 是一个 Swift 函数式编程库,提供了一套用于集合操作、字符串处理、数学计算以及日期和时间管理的综合工具包。它作为过滤、聚合和重构数组及字典的实用工具集。

ankurp/dollar 的主要功能有哪些?

ankurp/dollar 的主要功能包括:Swift Collection Extensions, Transformation Chains, Array Transformations, Element Filtering, Collection Element Transformations, Collection Filtering, Collection Groupings, Dictionary Extraction and Cleaning。

ankurp/dollar 有哪些开源替代品?

ankurp/dollar 的开源替代品包括: pytoolz/toolz — Toolz is a Python library that implements functional programming utilities for iterable transformation, dictionary… ramda/ramda — Ramda is a functional JavaScript standard library and toolset for immutable data transformation and composition. It… lodash/lodash — Lodash is a JavaScript utility library and data manipulation toolkit. It provides a collection of modular functions… sodiray/radash — Radash is a TypeScript functional utility library designed for data transformation, validation, and workflow… getify/functional-light-js — Functional-Light-JS is a JavaScript functional programming library designed to implement functional patterns within… remeda/remeda — Remeda is a type-safe functional utility library for TypeScript designed for building data transformation pipelines.…

Dollar 的开源替代方案

相似的开源项目,按与 Dollar 的功能重合度排序。
  • pytoolz/toolzpytoolz 的头像

    pytoolz/toolz

    5,117在 GitHub 上查看↗

    Toolz is a Python library that implements functional programming utilities for iterable transformation, dictionary manipulation, function composition, and lazy evaluation. It provides a set of pure functions designed to work with Python's built-in data structures, enabling concise and composable data processing workflows. What distinguishes toolz is its support for curried partial application, allowing functions to be incrementally applied and reused. It includes dictionary-centric operations that handle nested structures, and offers iterable chain transformers that combine mapping, filtering

    Python
    在 GitHub 上查看↗5,117
  • ramda/ramdaramda 的头像

    ramda/ramda

    24,072在 GitHub 上查看↗

    Ramda is a functional JavaScript standard library and toolset for immutable data transformation and composition. It provides a comprehensive suite of pure utility functions designed to enable declarative data processing pipelines. The library is distinguished by its use of automatic function currying and a data-last argument order. These design patterns allow multi-argument functions to be partially applied, simplifying the construction of processing chains where data is passed through a sequence of operations. The toolkit covers broad data manipulation capabilities, including list processin

    JavaScriptjavascriptramda
    在 GitHub 上查看↗24,072
  • lodash/lodashlodash 的头像

    lodash/lodash

    61,235在 GitHub 上查看↗

    Lodash is a JavaScript utility library and data manipulation toolkit. It provides a collection of modular functions for transforming, filtering, and validating arrays, objects, strings, and numbers. The project functions as a functional programming toolkit, offering capabilities for function composition, currying, and lazy evaluation. It includes mechanisms for execution control, such as debouncing and throttling, to manage the timing and frequency of function invocations. The library covers a broad surface of data operations, including deep cloning and merging of complex nested structures,

    JavaScriptjavascriptlodashmodules
    在 GitHub 上查看↗61,235
  • sodiray/radashsodiray 的头像

    sodiray/radash

    4,845在 GitHub 上查看↗

    Radash is a TypeScript functional utility library designed for data transformation, validation, and workflow management. It provides a collection of typed helper functions to manipulate arrays, objects, and strings. The project features an asynchronous workflow toolkit for managing promises, retries, and concurrency limits, alongside a suite of boolean validators for verifying primitive types, objects, and promises. It also implements functional programming patterns such as function composition, partial application, and error-first response patterns. The library covers a broad surface of cap

    TypeScriptfunctionshacktoberfestjavascript
    在 GitHub 上查看↗4,845
  • 查看 Dollar 的所有 30 个替代方案→