mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
1 line
6.1 KiB
JSON
1 line
6.1 KiB
JSON
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"dropFirst"},{"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 first element of the cursor."}]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"paragraph","inlineContent":[{"type":"text","text":"The following example drops the first element from a cursor of integers."}]},{"type":"codeListing","syntax":null,"code":["let numbers = AnyCursor([1, 2, 3, 4, 5])","try print(numbers.dropFirst())","\/\/ Prints \"[2, 3, 4, 5]\""]},{"type":"paragraph","inlineContent":[{"type":"text","text":"If the cursor has no elements, the result is an empty cursor."}]}]}],"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 first element of the cursor."}],"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":"DropFirstCursor","preciseIdentifier":"s:4GRDB15DropFirstCursorC"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":">"}],"symbolKind":"method","externalID":"s:4GRDB6CursorPAAE9dropFirstAA04DropdB0CyxGyF::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/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":"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 first element of the cursor."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor\/dropFirst()","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/dropwhilecursor\/dropfirst()"},"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":{"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/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"},"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/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"}}} |