TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jul 2015 |
SPMSupports SPM | ✗ |
Maintained by WeZZard.
Swift Extended Library is aiming to offer native Swift alternatives to Cocoa/CocoaTouch and missing conveniences in standard Swift library.
Emebed Binaries
field in your target’s general page if you are building an app. Or add Swift Extended Library to your Linked Frameworks and Libraries
field in your target’s general page if you are building a framework.import SwiftExt
to your Swift source file^
Int
value^^
SequenceDifference
:Indicates differences between two sequences.
OptionSetTraversalOptions
:Indicates how to traverse a RawOptionSetType
conformed Swift type.
Equatable
protocol.func contains<S : SequenceType where S.Generator.Element : Equatable>(containerSeq: S, containedSeq: S) -> Bool
func containsObject<S : SequenceType where S.Generator.Element : AnyObject>(domain: S, value: S.Generator.Element) -> Bool
:
containsObjects<S : SequenceType where S.Generator.Element : AnyObject>(containerSeq: S, containedSeq: S) -> Bool
:
findObject<C : CollectionType where C.Generator.Element : AnyObject>(domain: C, value: C.Generator.Element) -> C.Index?
Equatable
protocol.intersects<S : SequenceType where S.Generator.Element : Equatable>(seqA: S, seqB: S) -> Bool
ExtensibleCollectionType
protocol whose generator’s element type conformed to Equatable
protocol.intersected<C : ExtensibleCollectionType where C.Generator.Element : Equatable>(collectionA: C, collectionB: C) -> C
Equatable
protocol.func diff<Seq: SequenceType where Seq.Generator.Element : Equatable> (from fromSequence: Seq?, to toSequence: Seq?, #differences: SequenceDifference, usingClosure changesHandler: (change: SequenceDifference, fromElement: (index: Int, element: Seq.Generator.Element)?, toElement: (index: Int, element: Seq.Generator.Element)?) -> Void)
func diff<Seq: SequenceType> (from fromSequence: Seq?, to toSequence: Seq?, #differences: SequenceDifference, #equalComparator: ((Seq.Generator.Element, Seq.Generator.Element) -> Bool), #unchangedComparator: ((Seq.Generator.Element, Seq.Generator.Element) -> Bool), usingClosure changesHandler: (change: SequenceDifference, fromElement: (index: Int, element: Seq.Generator.Element)?, toElement: (index: Int, element: Seq.Generator.Element)?) -> Void)
RawOptionSetType
conformed type value.enumerate<T: RawOptionSetType where T.RawValue == UInt>(optionSet: T, withOptions options: OptionSetTraversalOptions, usingClosure handler:(optionSet: T, option: T) -> Bool )
:
RawOptionSetType
conformed type value.setValue<V, B: RawOptionSetType where B.RawValue == UInt>(value: V, forBitmask bitmask: B, inout inDictionary dictionary: Dictionary<UInt, V>)
RawOptionSetType
conformed type value.getValueForBitmask<V, B: RawOptionSetType where B.RawValue == UInt>(bitmask: B, inDictionary dictionary: [UInt: V]) -> V?
Swift Extended Library is available under the MIT license. See the LICENSE file for more info.