alexrozanski / Set

An implementation of a Dictionary-backed Set in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set

Build status

This is a Swift microframework which implements a Dictionary-backed Set.

Use

// Union
Set(1, 2, 3) + Set(3, 4, 5) // == Set(1, 2, 3, 4, 5)

// Difference
Set(1, 2, 3) - Set(2, 3) // == Set(1)

// Intersection
Set(1, 2, 3) & Set(3, 4, 5) // == Set(3)

See Set.swift for more details.

Integration

  1. Add this repo as a submodule in e.g. External/Set:

     git submodule add https://github.com/robrix/Set.git External/Set
    
  2. Drag Set.xcodeproj into your .xcworkspace/.xcodeproj.

  3. Add Set.framework to your target’s Link Binary With Libraries build phase.

  4. You may also want to add a Copy Files phase which copies Set.framework (and any other framework dependencies you need) into your bundle’s Frameworks directory. If your target is a framework, you may instead want the client app to include Set.framework.

Thanks

About

An implementation of a Dictionary-backed Set in Swift.

License:MIT License


Languages

Language:Swift 96.5%Language:Ruby 2.7%Language:C++ 0.8%