Skip to content

Instantly share code, notes, and snippets.

View fabrice's full-sized avatar

fabrice truillot de chambrier fabrice

View GitHub Profile
@akosma
akosma / set.swift
Created September 3, 2014 13:20
Set operations described in Swift using operators and NSSet instances
// Set operations taken from
// https://en.wikipedia.org/wiki/Set_(mathematics)
import Foundation
// The empty set
let Ø = NSSet()
// The "Universal" set
let U = NSMutableSet()