Signature: take(s: string, n: int) -> string
Description: Returns at most the first n bytes of s. Clamps; never fails.
Parameters
- s (string): The source string
- n (int): How many bytes to take
Returns: string
Example
take("hello", 3) // "hel"
Signature: take(s: string, n: int) -> string
Description: Returns at most the first n bytes of s. Clamps; never fails.
Returns: string
take("hello", 3) // "hel"