Set

  • Creates a set containing the elements of a cursor.

    // Set<String>
    let cursor = try String.fetchCursor(db, ...)
    let strings = try Set(cursor)
    
  • Creates a set containing the elements of a cursor.

    // Set<String>
    let cursor = try String.fetchCursor(db, ...)
    let strings = try Set(cursor, minimumCapacity: 100)