Skip to content

fwcd/swift-utils

Repository files navigation

Swift Utils

Build Docs

A large collection of general-purpose utilities for Swift, including:

  • Data structures
    • Promises
    • Priority queues (including binary heaps)
    • Circular arrays
    • Fixed-size arrays
    • Expiring lists
    • Search trees (including AVL trees)
    • Locks
    • Lazy dictionaries
    • Bidirectional dictionaries
  • Numerical utilities
    • N-dimensional arrays (including vectors and matrices)
    • Invertible operations
    • Fine-grained numeric protocol
    • Distributions
    • Averagers
  • Serialization helpers
    • Property wrappers for automatic JSON serialization
  • Collection utilities
    • Token iterators with lookahead and lookbehind
    • A wide range of extension functions
  • String processing
    • Edit distances (Levenshtein, LCS)
    • A wide range of extension functions
  • System interfacing
    • Subprocess/shell wrappers
    • Temporary file abstractions
    • Network packet wrappers