padEnd
Full name: taxi.stdlib.padEnd
Signature
declare extension function padEnd(input: String, length: Int, padWith: String):StringDescription
Pads the string to the specified total length by appending padWith characters at the end.
padWith should be a single character — if multiple characters are passed, only the first is used.
find { product: Product } as {
paddedCode: String = product.code.padEnd(10, ' ')
}Examples
Pads a string to the target length by appending characters on the right.
Try it out
Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed