{"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\/sqlstatementcursor\/drop(while:)"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/GRDB\/documentation\/GRDB\/SQLStatementCursor\/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:4GRDB18SQLStatementCursorC","extendedModule":"GRDB","modules":[{"name":"GRDB"}]},"hierarchy":{"paths":[["doc:\/\/GRDB\/documentation\/GRDB","doc:\/\/GRDB\/documentation\/GRDB\/DatabaseConnections","doc:\/\/GRDB\/documentation\/GRDB\/Database","doc:\/\/GRDB\/documentation\/GRDB\/SQLStatementCursor","doc:\/\/GRDB\/documentation\/GRDB\/SQLStatementCursor\/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":{"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/SQLStatementCursor":{"role":"symbol","title":"SQLStatementCursor","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"SQLStatementCursor"}],"abstract":[{"type":"text","text":"A cursor over all statements in an SQL string."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SQLStatementCursor","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"SQLStatementCursor"}],"url":"\/documentation\/grdb\/sqlstatementcursor"},"doc://GRDB/documentation/GRDB/Database":{"role":"symbol","title":"Database","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"Database"}],"abstract":[{"type":"text","text":"An SQLite connection."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/Database","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Database"}],"url":"\/documentation\/grdb\/database"},"doc://GRDB/documentation/GRDB/SQLStatementCursor/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\/SQLStatementCursor\/drop(while:)","kind":"symbol","type":"topic","url":"\/documentation\/grdb\/sqlstatementcursor\/drop(while:)"},"doc://GRDB/documentation/GRDB/SQLStatementCursor/Cursor-Implementations":{"role":"collectionGroup","title":"Cursor Implementations","abstract":[],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/SQLStatementCursor\/Cursor-Implementations","kind":"article","type":"topic","url":"\/documentation\/grdb\/sqlstatementcursor\/cursor-implementations"},"doc://GRDB/documentation/GRDB/DatabaseConnections":{"role":"collectionGroup","title":"Database Connections","abstract":[{"type":"text","text":"Open database connections to SQLite databases."}],"identifier":"doc:\/\/GRDB\/documentation\/GRDB\/DatabaseConnections","kind":"article","type":"topic","url":"\/documentation\/grdb\/databaseconnections"}}}