left

Full name: taxi.stdlib.left

​
Signature

declare extension function left(source:String, count:Int):String

​
Description

Returns the leftmost count characters from a string.

find { account: Account } as {
   prefix: String = account.code.left(3)
}

​
Examples

Extracts the first N characters from a string.

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