Files
2022-11-09 08:57:09 +01:00

1 line
7.0 KiB
JSON

{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"dropFirst"},{"kind":"text","text":"("},{"kind":"externalParam","text":"_"},{"kind":"text","text":" "},{"kind":"internalParam","text":"n"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropFirstCursor","preciseIdentifier":"s:4GRDB15DropFirstCursorC","text":"DropFirstCursor"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":">"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"anchor":"return-value","level":2,"type":"heading","text":"Return Value"},{"type":"paragraph","inlineContent":[{"type":"text","text":"A cursor starting after the specified number of"},{"type":"text","text":" "},{"type":"text","text":"elements."}]}]},{"kind":"parameters","parameters":[{"name":"n","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The number of elements to drop from the beginning of"},{"type":"text","text":" "},{"type":"text","text":"the cursor. "},{"type":"codeVoice","code":"n"},{"type":"text","text":" must be greater than or equal to zero."}]}]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"If the number of elements to drop exceeds the number of elements in"},{"type":"text","text":" "},{"type":"text","text":"the cursor, the result is an empty cursor."}]},{"type":"codeListing","syntax":null,"code":["let numbers = AnyCursor([1, 2, 3, 4, 5])","try print(numbers.dropFirst(2))","\/\/ Prints \"[3, 4, 5]\"","try print(numbers.dropFirst(10))","\/\/ Prints \"[]\""]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/grdb\/dropwhilecursor\/dropfirst(_:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor\/dropFirst(_:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Returns a cursor containing all but the given number of initial"},{"type":"text","text":" "},{"type":"text","text":"elements."}],"kind":"symbol","metadata":{"role":"symbol","title":"dropFirst(_:)","roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"dropFirst"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"DropFirstCursor","preciseIdentifier":"s:4GRDB15DropFirstCursorC"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":">"}],"symbolKind":"method","externalID":"s:4GRDB6CursorPAAE9dropFirstyAA04DropdB0CyxGSiF::SYNTHESIZED::s:4GRDB15DropWhileCursorC","extendedModule":"GRDB","modules":[{"name":"GRDB"}]},"hierarchy":{"paths":[["doc:\/\/GRDB\/documentation\/GRDB","doc:\/\/GRDB\/documentation\/GRDB\/SQLSupport","doc:\/\/GRDB\/documentation\/GRDB\/Cursor","doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor","doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor\/Cursor-Implementations"]]},"references":{"doc://GRDB/documentation/GRDB/DropWhileCursor":{"role":"symbol","title":"DropWhileCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"DropWhileCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" whose elements consist of the elements that follow the initial"},{"type":"text","text":" "},{"type":"text","text":"consecutive elements of some "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" cursor that satisfy a given predicate."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"DropWhileCursor"}],"url":"\/documentation\/grdb\/dropwhilecursor"},"doc://GRDB/documentation/GRDB/DropFirstCursor":{"role":"symbol","title":"DropFirstCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"DropFirstCursor"}],"abstract":[{"type":"text","text":"A "},{"type":"codeVoice","code":"Cursor"},{"type":"text","text":" that consumes and drops n elements from an underlying "},{"type":"codeVoice","code":"Base"},{"type":"text","text":" "},{"type":"text","text":"cursor before possibly returning the first available element."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropFirstCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"DropFirstCursor"}],"url":"\/documentation\/grdb\/dropfirstcursor"},"doc://GRDB/documentation/GRDB/SQLSupport":{"role":"collectionGroup","title":"SQL, Prepared Statements, Rows, and Values","abstract":[{"type":"text","text":"SQL is the fundamental language for accessing SQLite databases."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SQLSupport","kind":"article","type":"topic","url":"\/documentation\/grdb\/sqlsupport"},"doc://GRDB/documentation/GRDB":{"role":"collection","title":"GRDB","abstract":[{"type":"text","text":"A toolkit for SQLite databases, with a focus on application development"}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB","kind":"symbol","type":"topic","url":"\/documentation\/grdb"},"doc://GRDB/documentation/GRDB/Cursor":{"role":"symbol","title":"Cursor","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Cursor"}],"abstract":[{"type":"text","text":"A type that supplies the values of some external resource, one at a time."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/Cursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Cursor"}],"url":"\/documentation\/grdb\/cursor"},"doc://GRDB/documentation/GRDB/DropWhileCursor/dropFirst(_:)":{"role":"symbol","title":"dropFirst(_:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"dropFirst"},{"kind":"text","text":"("},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"DropFirstCursor","preciseIdentifier":"s:4GRDB15DropFirstCursorC"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":">"}],"abstract":[{"type":"text","text":"Returns a cursor containing all but the given number of initial"},{"type":"text","text":" "},{"type":"text","text":"elements."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor\/dropFirst(_:)","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/dropwhilecursor\/dropfirst(_:)"},"doc://GRDB/documentation/GRDB/DropWhileCursor/Cursor-Implementations":{"role":"collectionGroup","title":"Cursor Implementations","abstract":[],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor\/Cursor-Implementations","kind":"article","type":"topic","url":"\/documentation\/grdb\/dropwhilecursor\/cursor-implementations"}}}