drop (Function)

Signature: drop(s: string, n: int) -> string

Description: Returns s without its first n bytes. Clamps; never fails.

Parameters

  • s (string): The source string
  • n (int): How many bytes to drop

Returns: string

Example

drop("hello", 3)  // "lo"
drop ("hello", 3)  // "lo"