Signature: length(s: string) -> int

Description: Returns the byte length of a string. Total — never fails.

Parameters

Returns: int

Example

let len = length("hello")  // 5