startsWith

Full name: taxi.stdlib.startsWith

Signature

declare extension function startsWith(source: String, valueToSearchFor:String):Boolean

Description

Returns true if source begins with the specified prefix. The match is case-sensitive.

find { files: File[] } as {
   tempFiles: File[] = files.filter((File) -> FileName.startsWith('tmp_'))
}

Examples

Returns true when the string begins with the specified prefix, case-sensitively.

Try it out

Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed
Next
Welcome to Taxi