Function subleft()

← Back to Module string



Module string → subleft()

Description

Extract a specified number of characters from the left side of a string

subleft(s, len)


Parameters


Return Value


Usage Example

subleft("Hello World", 2)   ' Returns "He"