Skip to content

Instantly share code, notes, and snippets.

@nzatsepilov
Created November 8, 2016 09:18
Show Gist options
  • Save nzatsepilov/722616051b09bc7cc8b7de2b6ba3b72c to your computer and use it in GitHub Desktop.
Save nzatsepilov/722616051b09bc7cc8b7de2b6ba3b72c to your computer and use it in GitHub Desktop.
/home/clanat/work/nuclide/pkg/nuclide-swift/lib/sourcekitten/SourceKitten.js:48 [{
"context": "source.codecompletion.context.othermodule",
"moduleName": "Swift",
"name": "+",
"kind": "source.lang.swift.decl.function.operator.infix",
"typeName": "[Any]",
"descriptionKey": "+",
"sourcetext": " + <#T##τ_0_0#>"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:iEsPs9Indexable9subscriptFGVs11ClosedRangewx5Index_wx11SubSequence",
"moduleName": "Swift",
"name": "[]",
"kind": "source.lang.swift.decl.function.subscript",
"docBrief": "Accesses a contiguous subrange of the collection’s elements.",
"typeName": "Self.SubSequence",
"descriptionKey": "[ClosedRange<Self.Index>]",
"sourcetext": "[<#T##ClosedRange<Self.Index>#>]"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:iesRxs9Indexablewx5Indexs10StrideableWxS0_6Stride_s13SignedIntegerrS_9subscriptFGVs20CountableClosedRangewxS0__wx11SubSequence",
"moduleName": "Swift",
"name": "[]",
"kind": "source.lang.swift.decl.function.subscript",
"docBrief": "Accesses a contiguous subrange of the collection’s elements.",
"typeName": "Self.SubSequence",
"descriptionKey": "[CountableClosedRange<Self.Index>]",
"sourcetext": "[<#T##CountableClosedRange<Self.Index>#>]"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:iesRxs9Indexablewx5Indexs10StrideableWxS0_6Stride_s13SignedIntegerrS_9subscriptFGVs14CountableRangewxS0__wx11SubSequence",
"moduleName": "Swift",
"name": "[]",
"kind": "source.lang.swift.decl.function.subscript",
"docBrief": "Accesses a contiguous subrange of the collection’s elements.",
"typeName": "Self.SubSequence",
"descriptionKey": "[CountableRange<Self.Index>]",
"sourcetext": "[<#T##CountableRange<Self.Index>#>]"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:iSa9subscriptFSix s:iPs13IndexableBase9subscriptFwx5Indexwx8_Element s:iPs10Collection9subscriptFwx5IndexWx8Iterator7Element_ s:iPs17MutableCollection9subscriptFwx5IndexWx8Iterator7Element_ s:iPs16MutableIndexable9subscriptFwx5Indexwx8_Element s:iPs14_ArrayProtocol9subscriptFSiWx8Iterator7Element_",
"moduleName": "Swift",
"name": "[]",
"kind": "source.lang.swift.decl.function.subscript",
"docBrief": "Accesses the element at the specified position.",
"typeName": "Element",
"descriptionKey": "[Int]",
"sourcetext": "[<#T##Int#>]"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:iSa9subscriptFGVs5RangeSi_GVs10ArraySlicex_ s:iPs13IndexableBase9subscriptFGVs5Rangewx5Index_wx11SubSequence s:iPs10Collection9subscriptFGVs5Rangewx5Index_wx11SubSequence s:iPs17MutableCollection9subscriptFGVs5Rangewx5Index_wx11SubSequence s:iPs16MutableIndexable9subscriptFGVs5Rangewx5Index_wx11SubSequence",
"moduleName": "Swift",
"name": "[]",
"kind": "source.lang.swift.decl.function.subscript",
"docBrief": "Accesses a contiguous subrange of the array’s elements.",
"typeName": "ArraySlice<Element>",
"descriptionKey": "[Range<Int>]",
"sourcetext": "[<#T##Range<Int>#>]"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:iEsPs17MutableCollection9subscriptFGVs5Rangewx5Index_GVs12MutableSlicex_",
"moduleName": "Swift",
"name": "[]",
"kind": "source.lang.swift.decl.function.subscript",
"docBrief": "Accesses a contiguous subrange of the collection’s elements.",
"typeName": "MutableSlice<Self>",
"descriptionKey": "[Range<Self.Index>]",
"sourcetext": "[<#T##Range<Self.Index>#>]"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FE10FoundationPS_21_ObjectTypeBridgeable18_bridgeToAnyObjectFT_Ps9AnyObject_",
"name": "_bridgeToAnyObject()",
"moduleName": "Foundation",
"kind": "source.lang.swift.decl.function.method.instance",
"typeName": "AnyObject",
"descriptionKey": "_bridgeToAnyObject()",
"sourcetext": "._bridgeToAnyObject()"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FE10FoundationSa19_bridgeToObjectiveCFT_CS_7NSArray s:FP10Foundation21_ObjectTypeBridgeable19_bridgeToObjectiveCFT_wx11_ObjectType",
"name": "_bridgeToObjectiveC()",
"moduleName": "Foundation",
"kind": "source.lang.swift.decl.function.method.instance",
"typeName": "Array._ObjectType",
"descriptionKey": "_bridgeToObjectiveC()",
"sourcetext": "._bridgeToObjectiveC()"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa6appenduRd__s10CollectionxzWd__8Iterator7Element_rFT10contentsOfqd___T_",
"moduleName": "Swift",
"name": "append(contentsOf:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Adds the elements of a collection to the end of the array.",
"typeName": "Void",
"descriptionKey": "append(contentsOf: C)",
"sourcetext": ".append(contentsOf: <#T##C#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa6appenduRd__s8SequencexzWd__8Iterator7Element_rFT10contentsOfqd___T_ s:FPs26RangeReplaceableCollection6appenduRd__s8SequenceWx8Iterator7Element_zWd__8IteratorS2__rFT10contentsOfqd___T_",
"moduleName": "Swift",
"name": "append(contentsOf:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Adds the elements of a sequence to the end of the array.",
"typeName": "Void",
"descriptionKey": "append(contentsOf: S)",
"sourcetext": ".append(contentsOf: <#T##S#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa6appendFxT_ s:FPs26RangeReplaceableCollection6appendFWx8Iterator7Element_T_",
"moduleName": "Swift",
"name": "append(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Adds a new element at the end of the array.",
"typeName": "Void",
"descriptionKey": "append(newElement: Any)",
"sourcetext": ".append(<#T##newElement: Any##Any#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:vSa8capacitySi s:vPs14_ArrayProtocol8capacitySi",
"moduleName": "Swift",
"name": "capacity",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "The total number of elements that the array can contain using its current storage.",
"typeName": "Int",
"descriptionKey": "capacity",
"sourcetext": ".capacity"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence8containsFzT5whereFzWx8Iterator7Element_Sb_Sb",
"moduleName": "Swift",
"name": "contains(where:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a Boolean value indicating whether the sequence contains an element that satisfies the given predicate.",
"typeName": "Bool",
"descriptionKey": "contains(where: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".contains(where: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:vSa5countSi s:vPs10Collection5countwx13IndexDistance s:vPs14_ArrayProtocol5countSi",
"moduleName": "Swift",
"name": "count",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "The number of elements in the array.",
"typeName": "Int",
"descriptionKey": "count",
"sourcetext": ".count"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:vSa12customMirrorVs6Mirror s:vPs17CustomReflectable12customMirrorVs6Mirror",
"moduleName": "Swift",
"name": "customMirror",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "A mirror that reflects the array.",
"typeName": "Mirror",
"descriptionKey": "customMirror",
"sourcetext": ".customMirror"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:vSa16debugDescriptionSS s:vPs28CustomDebugStringConvertible16debugDescriptionSS",
"moduleName": "Swift",
"name": "debugDescription",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "A textual representation of the array and its elements, suitable for debugging.",
"typeName": "String",
"descriptionKey": "debugDescription",
"sourcetext": ".debugDescription"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:vSa11descriptionSS s:vPs23CustomStringConvertible11descriptionSS",
"moduleName": "Swift",
"name": "description",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "A textual representation of the array and its elements.",
"typeName": "String",
"descriptionKey": "description",
"sourcetext": ".description"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa8distanceFT4fromSi2toSi_Si s:FPs9Indexable8distanceFT4fromwx5Index2towxS0__wx13IndexDistance s:FPs10Collection8distanceFT4fromwx5Index2towxS0__wx13IndexDistance",
"moduleName": "Swift",
"name": "distance(from:to:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the distance between two indices.",
"typeName": "Int",
"descriptionKey": "distance(from: Int, to: Int)",
"sourcetext": ".distance(from: <#T##Int#>, to: <#T##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence9dropFirstFT_wx11SubSequence",
"moduleName": "Swift",
"name": "dropFirst()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence containing all but the first element of the sequence.",
"typeName": "Self.SubSequence",
"descriptionKey": "dropFirst()",
"sourcetext": ".dropFirst()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection9dropFirstFSiwx11SubSequence",
"moduleName": "Swift",
"name": "dropFirst(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence containing all but the given number of initial elements.",
"typeName": "Self.SubSequence",
"descriptionKey": "dropFirst(n: Int)",
"sourcetext": ".dropFirst(<#T##n: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs8Sequencewx11SubSequenceS_wxS0_zWxS0_S0__Wx8Iterator7Element_zWxS0_S1_S2__rS_9dropFirstFSiGVs11AnySequenceWxS1_S2___",
"moduleName": "Swift",
"name": "dropFirst(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence containing all but the given number of initial elements.",
"typeName": "AnySequence<Self.Iterator.Element>",
"descriptionKey": "dropFirst(n: Int)",
"sourcetext": ".dropFirst(<#T##n: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence8dropLastFT_wx11SubSequence",
"moduleName": "Swift",
"name": "dropLast()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence containing all but the last element of the sequence.",
"typeName": "Self.SubSequence",
"descriptionKey": "dropLast()",
"sourcetext": ".dropLast()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs8Sequencewx11SubSequenceS_wxS0_zWxS0_S0__Wx8Iterator7Element_zWxS0_S1_S2__rS_8dropLastFSiGVs11AnySequenceWxS1_S2___",
"moduleName": "Swift",
"name": "dropLast(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence containing all but the given number of final elements.",
"typeName": "AnySequence<Self.Iterator.Element>",
"descriptionKey": "dropLast(n: Int)",
"sourcetext": ".dropLast(<#T##n: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs23BidirectionalCollection8dropLastFSiwx11SubSequence",
"moduleName": "Swift",
"name": "dropLast(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence containing all but the specified number of final elements.",
"typeName": "Self.SubSequence",
"descriptionKey": "dropLast(n: Int)",
"sourcetext": ".dropLast(<#T##n: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence13elementsEqualuRd__S_Wx8Iterator7Element_zWd__S0_S1__rFzTqd__2byFzTWxS0_S1__WxS0_S1___Sb_Sb",
"moduleName": "Swift",
"name": "elementsEqual(:by:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a Boolean value indicating whether this sequence and another sequence contain equivalent elements, using the given predicate as the equivalence test.",
"typeName": "Bool",
"descriptionKey": "elementsEqual(other: OtherSequence, by: (Self.Iterator.Element, Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".elementsEqual(<#T##other: OtherSequence##OtherSequence#>, by: <#T##(Self.Iterator.Element, Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:vSa8endIndexSi s:vPs13IndexableBase8endIndexwx5Index s:vPs16MutableIndexable8endIndexwx5Index",
"moduleName": "Swift",
"name": "endIndex",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "The array’s “past the end” position—that is, the position one greater than the last valid subscript argument.",
"typeName": "Int",
"descriptionKey": "endIndex",
"sourcetext": ".endIndex"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence10enumeratedFT_GVs18EnumeratedSequencex_",
"moduleName": "Swift",
"name": "enumerated()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a sequence of pairs (n, x), where n represents a consecutive integer starting at zero, and x represents an element of the sequence.",
"typeName": "EnumeratedSequence<Self>",
"descriptionKey": "enumerated()",
"sourcetext": ".enumerated()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence6filterFzFzWx8Iterator7Element_SbGSaWxS0_S1___",
"moduleName": "Swift",
"name": "filter(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an array containing, in order, the elements of the sequence that satisfy the given predicate.",
"typeName": "[Self.Iterator.Element]",
"descriptionKey": "filter(isIncluded: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".filter(<#T##isIncluded: (Self.Iterator.Element) throws -> Bool##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:vEsPs10Collection5firstGSqWx8Iterator7Element__",
"moduleName": "Swift",
"name": "first",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "The first element of the collection.",
"typeName": "Self.Iterator.Element?",
"descriptionKey": "first",
"sourcetext": ".first"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence5firstFzT5whereFzWx8Iterator7Element_Sb_GSqWxS0_S1___",
"moduleName": "Swift",
"name": "first(where:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the first element of the sequence that satisfies the given predicate or nil if no such element is found.",
"typeName": "Self.Iterator.Element?",
"descriptionKey": "first(where: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".first(where: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence7flatMapurFzFzWx8Iterator7Element_GSqqd___GSaqd___",
"moduleName": "Swift",
"name": "flatMap(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an array containing the non-nil results of calling the given transformation with each element of this sequence.",
"typeName": "[ElementOfResult]",
"descriptionKey": "flatMap(transform: (Self.Iterator.Element) throws -> ElementOfResult?) rethrows",
"sourcetext": ".flatMap(<#T##transform: (Self.Iterator.Element) throws -> ElementOfResult?##(Self.Iterator.Element) throws -> ElementOfResult?#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence7flatMapuRd__S_rFzFzWx8Iterator7Element_qd__GSaWd__S0_S1___",
"moduleName": "Swift",
"name": "flatMap(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an array containing the concatenated results of calling the given transformation with each element of this sequence.",
"typeName": "[SegmentOfResult.Iterator.Element]",
"descriptionKey": "flatMap(transform: (Self.Iterator.Element) throws -> SegmentOfResult) rethrows",
"sourcetext": ".flatMap(<#T##transform: (Self.Iterator.Element) throws -> SegmentOfResult##(Self.Iterator.Element) throws -> SegmentOfResult#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence7forEachFzFzWx8Iterator7Element_T_T_",
"moduleName": "Swift",
"name": "forEach(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Calls the given closure on each element in the sequence in the same order as a for-in loop.",
"typeName": "Void",
"descriptionKey": "forEach(body: (Self.Iterator.Element) throws -> Void) rethrows",
"sourcetext": ".forEach(<#T##body: (Self.Iterator.Element) throws -> Void##(Self.Iterator.Element) throws -> Void#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs9Indexable9formIndexFTRwx5Index8offsetBywx13IndexDistance_T_",
"moduleName": "Swift",
"name": "formIndex(:offsetBy:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Offsets the given index by the specified distance.",
"typeName": "Void",
"descriptionKey": "formIndex(&i: Self.Index, offsetBy: Self.IndexDistance)",
"sourcetext": ".formIndex(&<#T##i: Self.Index##Self.Index#>, offsetBy: <#T##Self.IndexDistance#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs9Indexable9formIndexFTRwx5Index8offsetBywx13IndexDistance9limitedBywxS0__Sb",
"moduleName": "Swift",
"name": "formIndex(:offsetBy:limitedBy:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Offsets the given index by the specified distance, or so that it equals the given limiting index.",
"typeName": "Bool",
"descriptionKey": "formIndex(&i: Self.Index, offsetBy: Self.IndexDistance, limitedBy: Self.Index)",
"sourcetext": ".formIndex(&<#T##i: Self.Index##Self.Index#>, offsetBy: <#T##Self.IndexDistance#>, limitedBy: <#T##Self.Index#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa9formIndexFT5afterRSi_T_ s:FPs13IndexableBase9formIndexFT5afterRwx5Index_T_ s:FPs16MutableIndexable9formIndexFT5afterRwx5Index_T_",
"name": "formIndex(after:)",
"moduleName": "Swift",
"kind": "source.lang.swift.decl.function.method.instance",
"typeName": "Void",
"descriptionKey": "formIndex(after: &Int)",
"sourcetext": ".formIndex(after: &<#T##Int#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa9formIndexFT6beforeRSi_T_ s:FPs23BidirectionalCollection9formIndexFT6beforeRwx5Index_T_ s:FPs22BidirectionalIndexable9formIndexFT6beforeRwx5Index_T_",
"name": "formIndex(before:)",
"moduleName": "Swift",
"kind": "source.lang.swift.decl.function.method.instance",
"typeName": "Void",
"descriptionKey": "formIndex(before: &Int)",
"sourcetext": ".formIndex(before: &<#T##Int#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa5indexFT5afterSi_Si s:FPs13IndexableBase5indexFT5afterwx5Index_wxS0_ s:FPs16MutableIndexable5indexFT5afterwx5Index_wxS0_",
"name": "index(after:)",
"moduleName": "Swift",
"kind": "source.lang.swift.decl.function.method.instance",
"typeName": "Int",
"descriptionKey": "index(after: Int)",
"sourcetext": ".index(after: <#T##Int#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa5indexFT6beforeSi_Si s:FPs23BidirectionalCollection5indexFT6beforewx5Index_wxS0_ s:FPs22BidirectionalIndexable5indexFT6beforewx5Index_wxS0_",
"name": "index(before:)",
"moduleName": "Swift",
"kind": "source.lang.swift.decl.function.method.instance",
"typeName": "Int",
"descriptionKey": "index(before: Int)",
"sourcetext": ".index(before: <#T##Int#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa5indexFTSi8offsetBySi_Si s:FPs9Indexable5indexFTwx5Index8offsetBywx13IndexDistance_wxS0_ s:FPs10Collection5indexFTwx5Index8offsetBywx13IndexDistance_wxS0_",
"moduleName": "Swift",
"name": "index(:offsetBy:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an index that is the specified distance from the given index.",
"typeName": "Int",
"descriptionKey": "index(i: Int, offsetBy: Int)",
"sourcetext": ".index(<#T##i: Int##Int#>, offsetBy: <#T##Int#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa5indexFTSi8offsetBySi9limitedBySi_GSqSi_ s:FPs9Indexable5indexFTwx5Index8offsetBywx13IndexDistance9limitedBywxS0__GSqwxS0__ s:FPs10Collection5indexFTwx5Index8offsetBywx13IndexDistance9limitedBywxS0__GSqwxS0__",
"moduleName": "Swift",
"name": "index(:offsetBy:limitedBy:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an index that is the specified distance from the given index, unless that distance is beyond a given limiting index.",
"typeName": "Int?",
"descriptionKey": "index(i: Int, offsetBy: Int, limitedBy: Int)",
"sourcetext": ".index(<#T##i: Int##Int#>, offsetBy: <#T##Int#>, limitedBy: <#T##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection5indexFzT5whereFzWx8Iterator7Element_Sb_GSqwx5Index_",
"moduleName": "Swift",
"name": "index(where:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the first index in which an element of the collection satisfies the given predicate.",
"typeName": "Self.Index?",
"descriptionKey": "index(where: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".index(where: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:vesRxs22RandomAccessCollectionwx5Indexs10Strideablewx13IndexDistancezWx7Indices11SubSequenceS2__wxS0_zWxS3_S4_S4_8Iterator7Element_wxS3_zGVs14CountableRangewxS0__WxS0_6Stride_zWxS3_S4_S2__WxS3_7Indices_zGS7_wxS0__WxS3_S2__zWxS3_S4_S2__WxS3_S0__zWxS3_S4_S4_S5_S6__WxS3_S4__zGS7_wxS0__WxS3_8_Element_zWxS3_S4_S4_S5_S6__WxS3_S5__zGVs16IndexingIteratorGS7_wxS0___WxS3_S9_S9__zGS7_wxS0__WxS3_S9_S2__zWxS3_S4_S2__WxS3_S9_S0__zWxS3_S4_S4_S5_S6__WxS3_S9_S4__zGS7_wxS0__WxS3_S9_S10__zWxS3_S4_S4_S5_S6__WxS3_S9_S5__zGS11_GS7_wxS0___WxS3_S4_S9__zGS7_wxS0__WxS3_S4_S0__zWxS3_S4_S4_S5_S6__WxS3_S4_S4__zGS7_wxS0__WxS3_S4_S10__zWxS3_S4_S4_S5_S6__WxS3_S4_S5__zGS11_GS7_wxS0___WxS3_S5_S6__zWxS3_S4_S4_S5_S6__WxS3_S9_S9_S0__zWxS3_S4_S4_S5_S6__WxS3_S9_S9_S4__zGS7_wxS0__WxS3_S9_S9_S10__zWxS3_S4_S4_S5_S6__WxS3_S9_S9_S5__zGS11_GS7_wxS0___WxS3_S9_S4_S0__zWxS3_S4_S4_S5_S6__WxS3_S9_S4_S4__zGS7_wxS0__WxS3_S9_S4_S10__zWxS3_S4_S4_S5_S6__WxS3_S9_S4_S5__zGS11_GS7_wxS0___WxS3_S9_S5_S6__zWxS3_S4_S4_S5_S6__WxS3_S4_S9_S0__zWxS3_S4_S4_S5_S6__WxS3_S4_S9_S4__zGS7_wxS0__WxS3_S4_S9_S10__zWxS3_S4_S4_S5_S6__WxS3_S4_S9_S5__zGS11_GS7_wxS0___WxS3_S4_S4_S0__zWxS3_S4_S4_S5_S6__WxS3_S4_S4_S4__zGS7_wxS0__WxS3_S4_S4_S10__zWxS3_S4_S4_S5_S6__WxS3_S4_S4_S5__zGS11_GS7_wxS0___WxS3_S4_S5_S6__zWxS3_S4_S4_S5_S6__WxS3_S9_S9_S5_S6__zWxS3_S4_S4_S5_S6__WxS3_S9_S4_S5_S6__zWxS3_S4_S4_S5_S6__WxS3_S4_S9_S5_S6__zWxS3_S4_S4_S5_S6__rS_7indicesGS7_wxS0__",
"moduleName": "Swift",
"name": "indices",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "The indices that are valid for subscripting the collection, in ascending order.",
"typeName": "CountableRange<Self.Index>",
"descriptionKey": "indices",
"sourcetext": ".indices"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs26RangeReplaceableCollection6insertuRd__s10CollectionWx8Iterator7Element_zWd__S1_S2__rFT10contentsOfqd__2atwx5Index_T_",
"moduleName": "Swift",
"name": "insert(contentsOf:at:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Inserts the elements of a sequence into the collection at the specified position.",
"typeName": "Void",
"descriptionKey": "insert(contentsOf: C, at: Self.Index)",
"sourcetext": ".insert(contentsOf: <#T##C#>, at: <#T##Self.Index#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa6insertFTx2atSi_T_ s:FPs26RangeReplaceableCollection6insertFTWx8Iterator7Element_2atwx5Index_T_ s:FPs25RangeReplaceableIndexable6insertFTwx8_Element2atwx5Index_T_ s:FPs14_ArrayProtocol6insertFTWx8Iterator7Element_2atSi_T_",
"moduleName": "Swift",
"name": "insert(:at:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Inserts a new element at the specified position.",
"typeName": "Void",
"descriptionKey": "insert(newElement: Any, at: Int)",
"sourcetext": ".insert(<#T##newElement: Any##Any#>, at: <#T##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:vEsPs10Collection7isEmptySb",
"moduleName": "Swift",
"name": "isEmpty",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "A Boolean value indicating whether the collection is empty.",
"typeName": "Bool",
"descriptionKey": "isEmpty",
"sourcetext": ".isEmpty"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:vEsPs23BidirectionalCollection4lastGSqWx8Iterator7Element__",
"moduleName": "Swift",
"name": "last",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "The last element of the collection.",
"typeName": "Self.Iterator.Element?",
"descriptionKey": "last",
"sourcetext": ".last"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:vEsPs22RandomAccessCollection4lazyGVs26LazyRandomAccessCollectionx_",
"moduleName": "Swift",
"name": "lazy",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "A view onto this collection that provides lazy implementations of normally eager operations, such as map and filter.",
"typeName": "LazyRandomAccessCollection<Self>",
"descriptionKey": "lazy",
"sourcetext": ".lazy"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence25lexicographicallyPrecedesuRd__S_Wx8Iterator7Element_zWd__S0_S1__rFzTqd__2byFzTWxS0_S1__WxS0_S1___Sb_Sb",
"moduleName": "Swift",
"name": "lexicographicallyPrecedes(:by:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a Boolean value indicating whether the sequence precedes another sequence in a lexicographical (dictionary) ordering, using the given predicate to compare elements.",
"typeName": "Bool",
"descriptionKey": "lexicographicallyPrecedes(other: OtherSequence, by: (Self.Iterator.Element, Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".lexicographicallyPrecedes(<#T##other: OtherSequence##OtherSequence#>, by: <#T##(Self.Iterator.Element, Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs10Collectionwx8IteratorzGVs16IndexingIteratorx_wx8_ElementzWxS0_7Element_rS_12makeIteratorFT_GS1_x_",
"moduleName": "Swift",
"name": "makeIterator()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an iterator over the elements of the collection.",
"typeName": "IndexingIterator<Self>",
"descriptionKey": "makeIterator()",
"sourcetext": ".makeIterator()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection3mapurFzFzWx8Iterator7Element_qd__GSaqd___",
"moduleName": "Swift",
"name": "map(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an array containing the results of mapping the given closure over the sequence’s elements.",
"typeName": "[T]",
"descriptionKey": "map(transform: (Self.Iterator.Element) throws -> T) rethrows",
"sourcetext": ".map(<#T##transform: (Self.Iterator.Element) throws -> T##(Self.Iterator.Element) throws -> T#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence3maxFzT2byFzTWx8Iterator7Element_WxS0_S1___Sb_GSqWxS0_S1___",
"moduleName": "Swift",
"name": "max(by:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the maximum element in the sequence, using the given predicate as the comparison between elements.",
"typeName": "Self.Iterator.Element?",
"descriptionKey": "max(by: (Self.Iterator.Element, Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".max(by: <#T##(Self.Iterator.Element, Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence3minFzT2byFzTWx8Iterator7Element_WxS0_S1___Sb_GSqWxS0_S1___",
"moduleName": "Swift",
"name": "min(by:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the minimum element in the sequence, using the given predicate as the comparison between elements.",
"typeName": "Self.Iterator.Element?",
"descriptionKey": "min(by: (Self.Iterator.Element, Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".min(by: <#T##(Self.Iterator.Element, Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs17MutableCollection9partitionFzT2byFzWx8Iterator7Element_Sb_wx5Index",
"name": "partition(by:)",
"moduleName": "Swift",
"kind": "source.lang.swift.decl.function.method.instance",
"typeName": "Self.Index",
"descriptionKey": "partition(by: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".partition(by: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa7popLastFT_GSqx_",
"moduleName": "Swift",
"name": "popLast()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes and returns the last element of the array.",
"typeName": "Any?",
"descriptionKey": "popLast()",
"sourcetext": ".popLast()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection6prefixFSiwx11SubSequence",
"moduleName": "Swift",
"name": "prefix(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence, up to the specified maximum length, containing the initial elements of the collection.",
"typeName": "Self.SubSequence",
"descriptionKey": "prefix(maxLength: Int)",
"sourcetext": ".prefix(<#T##maxLength: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs8Sequencewx11SubSequenceS_wxS0_zWxS0_S0__Wx8Iterator7Element_zWxS0_S1_S2__rS_6prefixFSiGVs11AnySequenceWxS1_S2___",
"moduleName": "Swift",
"name": "prefix(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence, up to the specified maximum length, containing the initial elements of the sequence.",
"typeName": "AnySequence<Self.Iterator.Element>",
"descriptionKey": "prefix(maxLength: Int)",
"sourcetext": ".prefix(<#T##maxLength: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection6prefixFT7throughwx5Index_wx11SubSequence",
"moduleName": "Swift",
"name": "prefix(through:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence from the start of the collection through the specified position.",
"typeName": "Self.SubSequence",
"descriptionKey": "prefix(through: Self.Index)",
"sourcetext": ".prefix(through: <#T##Self.Index#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection6prefixFT4upTowx5Index_wx11SubSequence",
"moduleName": "Swift",
"name": "prefix(upTo:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence from the start of the collection up to, but not including, the specified position.",
"typeName": "Self.SubSequence",
"descriptionKey": "prefix(upTo: Self.Index)",
"sourcetext": ".prefix(upTo: <#T##Self.Index#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence6reduceurFzTqd__FzTqd__Wx8Iterator7Element__qd___qd__",
"moduleName": "Swift",
"name": "reduce(::)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the result of calling the given combining closure with each element of this sequence and an accumulating value.",
"typeName": "Result",
"descriptionKey": "reduce(initialResult: Result, nextPartialResult: (Result, Self.Iterator.Element) throws -> Result) rethrows",
"sourcetext": ".reduce(<#T##initialResult: Result##Result#>, <#T##nextPartialResult: (Result, Self.Iterator.Element) throws -> Result##(Result, Self.Iterator.Element) throws -> Result#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa6removeFT2atSi_x s:FPs26RangeReplaceableCollection6removeFT2atwx5Index_Wx8Iterator7Element_ s:FPs25RangeReplaceableIndexable6removeFT2atwx5Index_wx8_Element s:FPs14_ArrayProtocol6removeFT2atSi_Wx8Iterator7Element_",
"moduleName": "Swift",
"name": "remove(at:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes and returns the element at the specified position.",
"typeName": "Any",
"descriptionKey": "remove(at: Int)",
"sourcetext": ".remove(at: <#T##Int#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa9removeAllFT15keepingCapacitySb_T_ s:FPs26RangeReplaceableCollection9removeAllFT15keepingCapacitySb_T_",
"moduleName": "Swift",
"name": "removeAll()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes all elements from the array.",
"typeName": "Void",
"descriptionKey": "removeAll()",
"sourcetext": ".removeAll()"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa9removeAllFT15keepingCapacitySb_T_ s:FPs26RangeReplaceableCollection9removeAllFT15keepingCapacitySb_T_",
"moduleName": "Swift",
"name": "removeAll(keepingCapacity:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes all elements from the array.",
"typeName": "Void",
"descriptionKey": "removeAll(keepingCapacity: Bool)",
"sourcetext": ".removeAll(keepingCapacity: <#T##Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs26RangeReplaceableCollection11removeFirstFT_Wx8Iterator7Element_",
"moduleName": "Swift",
"name": "removeFirst()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes and returns the first element of the collection.",
"typeName": "Self.Iterator.Element",
"descriptionKey": "removeFirst()",
"sourcetext": ".removeFirst()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs26RangeReplaceableCollection11removeFirstFSiT_",
"moduleName": "Swift",
"name": "removeFirst(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes the specified number of elements from the beginning of the collection.",
"typeName": "Void",
"descriptionKey": "removeFirst(n: Int)",
"sourcetext": ".removeFirst(<#T##n: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs23BidirectionalCollectionxs26RangeReplaceableCollectionrS0_10removeLastFT_WxPs10Collection8Iterator7Element_",
"moduleName": "Swift",
"name": "removeLast()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes and returns the last element of the collection.",
"typeName": "Self.Iterator.Element",
"descriptionKey": "removeLast()",
"sourcetext": ".removeLast()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs23BidirectionalCollectionxs26RangeReplaceableCollectionrS0_10removeLastFSiT_",
"moduleName": "Swift",
"name": "removeLast(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes the specified number of elements from the end of the collection.",
"typeName": "Void",
"descriptionKey": "removeLast(n: Int)",
"sourcetext": ".removeLast(<#T##n: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs26RangeReplaceableCollection14removeSubrangeFGVs11ClosedRangewx5Index_T_",
"moduleName": "Swift",
"name": "removeSubrange(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes the elements in the specified subrange from the collection.",
"typeName": "Void",
"descriptionKey": "removeSubrange(bounds: ClosedRange<Self.Index>)",
"sourcetext": ".removeSubrange(<#T##bounds: ClosedRange<Self.Index>##ClosedRange<Self.Index>#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs26RangeReplaceableCollectionwx5Indexs10StrideableWxS0_6Stride_s13SignedIntegerrS_14removeSubrangeFGVs20CountableClosedRangewxS0__T_",
"moduleName": "Swift",
"name": "removeSubrange(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes the elements in the specified subrange from the collection.",
"typeName": "Void",
"descriptionKey": "removeSubrange(bounds: CountableClosedRange<Self.Index>)",
"sourcetext": ".removeSubrange(<#T##bounds: CountableClosedRange<Self.Index>##CountableClosedRange<Self.Index>#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs26RangeReplaceableCollectionwx5Indexs10StrideableWxS0_6Stride_s13SignedIntegerrS_14removeSubrangeFGVs14CountableRangewxS0__T_",
"moduleName": "Swift",
"name": "removeSubrange(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes the elements in the specified subrange from the collection.",
"typeName": "Void",
"descriptionKey": "removeSubrange(bounds: CountableRange<Self.Index>)",
"sourcetext": ".removeSubrange(<#T##bounds: CountableRange<Self.Index>##CountableRange<Self.Index>#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs26RangeReplaceableCollection14removeSubrangeFGVs5Rangewx5Index_T_",
"moduleName": "Swift",
"name": "removeSubrange(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Removes the elements in the specified subrange from the collection.",
"typeName": "Void",
"descriptionKey": "removeSubrange(bounds: Range<Self.Index>)",
"sourcetext": ".removeSubrange(<#T##bounds: Range<Self.Index>##Range<Self.Index>#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs26RangeReplaceableCollection15replaceSubrangeuRd__s10CollectionWx8Iterator7Element_zWd__S1_S2__rFTGVs11ClosedRangewx5Index_4withqd___T_",
"moduleName": "Swift",
"name": "replaceSubrange(:with:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Replaces the specified subrange of elements with the given collection.",
"typeName": "Void",
"descriptionKey": "replaceSubrange(subrange: ClosedRange<Self.Index>, with: C)",
"sourcetext": ".replaceSubrange(<#T##subrange: ClosedRange<Self.Index>##ClosedRange<Self.Index>#>, with: <#T##C#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs26RangeReplaceableCollectionwx5Indexs10StrideableWxS0_6Stride_s13SignedIntegerrS_15replaceSubrangeuRd__s10CollectionWx8Iterator7Element_zWd__S5_S6__rFTGVs20CountableClosedRangewxS0__4withqd___T_",
"moduleName": "Swift",
"name": "replaceSubrange(:with:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Replaces the specified subrange of elements with the given collection.",
"typeName": "Void",
"descriptionKey": "replaceSubrange(subrange: CountableClosedRange<Self.Index>, with: C)",
"sourcetext": ".replaceSubrange(<#T##subrange: CountableClosedRange<Self.Index>##CountableClosedRange<Self.Index>#>, with: <#T##C#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs26RangeReplaceableCollectionwx5Indexs10StrideableWxS0_6Stride_s13SignedIntegerrS_15replaceSubrangeuRd__s10CollectionWx8Iterator7Element_zWd__S5_S6__rFTGVs14CountableRangewxS0__4withqd___T_",
"moduleName": "Swift",
"name": "replaceSubrange(:with:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Replaces the specified subrange of elements with the given collection.",
"typeName": "Void",
"descriptionKey": "replaceSubrange(subrange: CountableRange<Self.Index>, with: C)",
"sourcetext": ".replaceSubrange(<#T##subrange: CountableRange<Self.Index>##CountableRange<Self.Index>#>, with: <#T##C#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa15replaceSubrangeuRd__s10CollectionxzWd__8Iterator7Element_rFTGVs5RangeSi_4withqd___T_ s:FPs26RangeReplaceableCollection15replaceSubrangeuRd__s10CollectionWx8Iterator7Element_zWd__S1_S2__rFTGVs5Rangewx5Index_4withqd___T_ s:FPs25RangeReplaceableIndexable15replaceSubrangeuRd__s10Collectionwx8_ElementzWd__8Iterator7Element_rFTGVs5Rangewx5Index_4withqd___T_",
"moduleName": "Swift",
"name": "replaceSubrange(:with:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Replaces a range of elements with the elements in the specified collection.",
"typeName": "Void",
"descriptionKey": "replaceSubrange(subrange: Range<Int>, with: C)",
"sourcetext": ".replaceSubrange(<#T##subrange: Range<Int>##Range<Int>#>, with: <#T##C#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa15reserveCapacityFSiT_ s:FPs26RangeReplaceableCollection15reserveCapacityFwx13IndexDistanceT_ s:FPs14_ArrayProtocol15reserveCapacityFSiT_",
"moduleName": "Swift",
"name": "reserveCapacity(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Reserves enough space to store the specified number of elements.",
"typeName": "Void",
"descriptionKey": "reserveCapacity(minimumCapacity: Int)",
"sourcetext": ".reserveCapacity(<#T##minimumCapacity: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs23BidirectionalCollectionxs17MutableCollectionrS0_7reverseFT_T_",
"moduleName": "Swift",
"name": "reverse()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Reverses the elements of the collection in place.",
"typeName": "Void",
"descriptionKey": "reverse()",
"sourcetext": ".reverse()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs23BidirectionalCollection8reversedFT_GVs18ReversedCollectionx_",
"moduleName": "Swift",
"name": "reversed()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a view presenting the elements of the collection in reverse order.",
"typeName": "ReversedCollection<Self>",
"descriptionKey": "reversed()",
"sourcetext": ".reversed()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence8reversedFT_GSaWx8Iterator7Element__",
"moduleName": "Swift",
"name": "reversed()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns an array containing the elements of this sequence in reverse order.",
"typeName": "[Self.Iterator.Element]",
"descriptionKey": "reversed()",
"sourcetext": ".reversed()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs22RandomAccessCollection8reversedFT_GVs30ReversedRandomAccessCollectionx_",
"moduleName": "Swift",
"name": "reversed()",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a view presenting the elements of the collection in reverse order.",
"typeName": "ReversedRandomAccessCollection<Self>",
"descriptionKey": "reversed()",
"sourcetext": ".reversed()"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FesRxs17MutableCollectionxs22RandomAccessCollectionrS_4sortFT2byFTWxPs10Collection8Iterator7Element_WxS2_S3___Sb_T_",
"moduleName": "Swift",
"name": "sort(by:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Sorts the collection in place, using the given predicate as the comparison between elements.",
"typeName": "Void",
"descriptionKey": "sort(by: (Self.Iterator.Element, Self.Iterator.Element) -> Bool)",
"sourcetext": ".sort(by: <#T##(Self.Iterator.Element, Self.Iterator.Element) -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence6sortedFT2byFTWx8Iterator7Element_WxS0_S1___Sb_GSaWxS0_S1___",
"moduleName": "Swift",
"name": "sorted(by:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the elements of the sequence, sorted using the given predicate as the comparison between elements.",
"typeName": "[Self.Iterator.Element]",
"descriptionKey": "sorted(by: (Self.Iterator.Element, Self.Iterator.Element) -> Bool)",
"sourcetext": ".sorted(by: <#T##(Self.Iterator.Element, Self.Iterator.Element) -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection5splitFzT9maxSplitsSi25omittingEmptySubsequencesSb14whereSeparatorFzWx8Iterator7Element_Sb_GSawx11SubSequence_",
"moduleName": "Swift",
"name": "split(maxSplits:omittingEmptySubsequences:whereSeparator:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the longest possible subsequences of the collection, in order, that don’t contain elements satisfying the given predicate.",
"typeName": "[Self.SubSequence]",
"descriptionKey": "split(maxSplits: Int, omittingEmptySubsequences: Bool, whereSeparator: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".split(maxSplits: <#T##Int#>, omittingEmptySubsequences: <#T##Bool#>, whereSeparator: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence5splitFzT9maxSplitsSi25omittingEmptySubsequencesSb14whereSeparatorFzWx8Iterator7Element_Sb_GSaGVs11AnySequenceWxS0_S1____",
"moduleName": "Swift",
"name": "split(maxSplits:omittingEmptySubsequences:whereSeparator:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the longest possible subsequences of the sequence, in order, that don’t contain elements satisfying the given predicate. Elements that are used to split the sequence are not returned as part of any subsequence.",
"typeName": "[AnySequence<Self.Iterator.Element>]",
"descriptionKey": "split(maxSplits: Int, omittingEmptySubsequences: Bool, whereSeparator: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".split(maxSplits: <#T##Int#>, omittingEmptySubsequences: <#T##Bool#>, whereSeparator: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection5splitFzT9maxSplitsSi25omittingEmptySubsequencesSb14whereSeparatorFzWx8Iterator7Element_Sb_GSawx11SubSequence_",
"moduleName": "Swift",
"name": "split(whereSeparator:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the longest possible subsequences of the collection, in order, that don’t contain elements satisfying the given predicate.",
"typeName": "[Self.SubSequence]",
"descriptionKey": "split(whereSeparator: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".split(whereSeparator: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence5splitFzT9maxSplitsSi25omittingEmptySubsequencesSb14whereSeparatorFzWx8Iterator7Element_Sb_GSaGVs11AnySequenceWxS0_S1____",
"moduleName": "Swift",
"name": "split(whereSeparator:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns the longest possible subsequences of the sequence, in order, that don’t contain elements satisfying the given predicate. Elements that are used to split the sequence are not returned as part of any subsequence.",
"typeName": "[AnySequence<Self.Iterator.Element>]",
"descriptionKey": "split(whereSeparator: (Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".split(whereSeparator: <#T##(Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:vSa10startIndexSi s:vPs13IndexableBase10startIndexwx5Index s:vPs16MutableIndexable10startIndexwx5Index",
"moduleName": "Swift",
"name": "startIndex",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "The position of the first element in a nonempty array.",
"typeName": "Int",
"descriptionKey": "startIndex",
"sourcetext": ".startIndex"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence6startsuRd__S_Wx8Iterator7Element_zWd__S0_S1__rFzT4withqd__2byFzTWxS0_S1__WxS0_S1___Sb_Sb",
"moduleName": "Swift",
"name": "starts(with:by:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a Boolean value indicating whether the initial elements of the sequence are equivalent to the elements in another sequence, using the given predicate as the equivalence test.",
"typeName": "Bool",
"descriptionKey": "starts(with: PossiblePrefix, by: (Self.Iterator.Element, Self.Iterator.Element) throws -> Bool) rethrows",
"sourcetext": ".starts(with: <#T##PossiblePrefix#>, by: <#T##(Self.Iterator.Element, Self.Iterator.Element) throws -> Bool#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs10Collection6suffixFT4fromwx5Index_wx11SubSequence",
"moduleName": "Swift",
"name": "suffix(from:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence from the specified position to the end of the collection.",
"typeName": "Self.SubSequence",
"descriptionKey": "suffix(from: Self.Index)",
"sourcetext": ".suffix(from: <#T##Self.Index#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs23BidirectionalCollection6suffixFSiwx11SubSequence",
"moduleName": "Swift",
"name": "suffix(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence, up to the given maximum length, containing the final elements of the collection.",
"typeName": "Self.SubSequence",
"descriptionKey": "suffix(maxLength: Int)",
"sourcetext": ".suffix(<#T##maxLength: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:FEsPs8Sequence6suffixFSiGVs11AnySequenceWx8Iterator7Element__",
"moduleName": "Swift",
"name": "suffix(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Returns a subsequence, up to the given maximum length, containing the final elements of the sequence.",
"typeName": "AnySequence<Self.Iterator.Element>",
"descriptionKey": "suffix(maxLength: Int)",
"sourcetext": ".suffix(<#T##maxLength: Int##Int#>)"
}, {
"context": "source.codecompletion.context.superclass",
"associatedUSRs": "s:vEsPs10Collection19underestimatedCountSi",
"moduleName": "Swift",
"name": "underestimatedCount",
"kind": "source.lang.swift.decl.var.instance",
"docBrief": "A value less than or equal to the number of elements in the collection.",
"typeName": "Int",
"descriptionKey": "underestimatedCount",
"sourcetext": ".underestimatedCount"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa23withUnsafeBufferPointerurFzFzGSRx_qd__qd__",
"moduleName": "Swift",
"name": "withUnsafeBufferPointer(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Calls a closure with a pointer to the array’s contiguous storage. If no such storage exists, it is first created.",
"typeName": "R",
"descriptionKey": "withUnsafeBufferPointer(body: (UnsafeBufferPointer<Any>) throws -> R) rethrows",
"sourcetext": ".withUnsafeBufferPointer(<#T##body: (UnsafeBufferPointer<Any>) throws -> R##(UnsafeBufferPointer<Any>) throws -> R#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa15withUnsafeBytesurFzFzVs22UnsafeRawBufferPointerqd__qd__",
"moduleName": "Swift",
"name": "withUnsafeBytes(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Calls a closure with a view of the array’s underlying bytes of memory as a Collection of UInt8.",
"typeName": "R",
"descriptionKey": "withUnsafeBytes(body: (UnsafeRawBufferPointer) throws -> R) rethrows",
"sourcetext": ".withUnsafeBytes(<#T##body: (UnsafeRawBufferPointer) throws -> R##(UnsafeRawBufferPointer) throws -> R#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa30withUnsafeMutableBufferPointerurFzFzRGSrx_qd__qd__",
"moduleName": "Swift",
"name": "withUnsafeMutableBufferPointer(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Calls the given closure with a pointer to the array’s mutable contiguous storage. If no such storage exists, it is first created.",
"typeName": "R",
"descriptionKey": "withUnsafeMutableBufferPointer(body: (inout UnsafeMutableBufferPointer<Any>) throws -> R) rethrows",
"sourcetext": ".withUnsafeMutableBufferPointer(<#T##body: (inout UnsafeMutableBufferPointer<Any>) throws -> R##(inout UnsafeMutableBufferPointer<Any>) throws -> R#>)"
}, {
"context": "source.codecompletion.context.thisclass",
"associatedUSRs": "s:FSa22withUnsafeMutableBytesurFzFzVs29UnsafeMutableRawBufferPointerqd__qd__",
"moduleName": "Swift",
"name": "withUnsafeMutableBytes(:)",
"kind": "source.lang.swift.decl.function.method.instance",
"docBrief": "Calls a closure with a view of the array’s underlying bytes of memory as a Collection of UInt8.",
"typeName": "R",
"descriptionKey": "withUnsafeMutableBytes(body: (UnsafeMutableRawBufferPointer) throws -> R) rethrows",
"sourcetext": ".withUnsafeMutableBytes(<#T##body: (UnsafeMutableRawBufferPointer) throws -> R##(UnsafeMutableRawBufferPointer) throws -> R#>)"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment