mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
1 line
6.7 KiB
JSON
1 line
6.7 KiB
JSON
{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"drop"},{"kind":"text","text":"("},{"kind":"externalParam","text":"while"},{"kind":"text","text":" "},{"kind":"internalParam","text":"predicate"},{"kind":"text","text":": "},{"kind":"keyword","text":"@escaping"},{"kind":"text","text":" ("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Element"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor","preciseIdentifier":"s:4GRDB15DropWhileCursorC","text":"DropWhileCursor"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":">"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"parameters","parameters":[{"name":"predicate","content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"A closure that takes an element of the cursor as"},{"type":"text","text":" "},{"type":"text","text":"its argument and returns "},{"type":"codeVoice","code":"true"},{"type":"text","text":" if the element should be skipped or"},{"type":"text","text":" "},{"type":"codeVoice","code":"false"},{"type":"text","text":" otherwise. Once "},{"type":"codeVoice","code":"predicate"},{"type":"text","text":" returns "},{"type":"codeVoice","code":"false"},{"type":"text","text":" it will not be"},{"type":"text","text":" "},{"type":"text","text":"called again."}]}]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/grdb\/dropwhilecursor\/drop(while:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor\/drop(while:)","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"Returns a cursor that skips any initial elements that satisfy"},{"type":"text","text":" "},{"type":"codeVoice","code":"predicate"},{"type":"text","text":"."}],"kind":"symbol","metadata":{"role":"symbol","title":"drop(while:)","roleHeading":"Instance Method","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"drop"},{"kind":"text","text":"("},{"kind":"externalParam","text":"while"},{"kind":"text","text":": ("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Element"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"DropWhileCursor","preciseIdentifier":"s:4GRDB15DropWhileCursorC"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":">"}],"symbolKind":"method","externalID":"s:4GRDB6CursorPAAE4drop5whileAA09DropWhileB0CyxGSb7ElementQzKc_tF::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/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"},"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/drop(while:)":{"role":"symbol","title":"drop(while:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"drop"},{"kind":"text","text":"("},{"kind":"externalParam","text":"while"},{"kind":"text","text":": ("},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":"."},{"kind":"typeIdentifier","text":"Element"},{"kind":"text","text":") "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Bool","preciseIdentifier":"s:Sb"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"DropWhileCursor","preciseIdentifier":"s:4GRDB15DropWhileCursorC"},{"kind":"text","text":"<"},{"kind":"typeIdentifier","text":"Self"},{"kind":"text","text":">"}],"abstract":[{"type":"text","text":"Returns a cursor that skips any initial elements that satisfy"},{"type":"text","text":" "},{"type":"codeVoice","code":"predicate"},{"type":"text","text":"."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DropWhileCursor\/drop(while:)","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/dropwhilecursor\/drop(while:)"},"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"}}} |