WLJS LogoWLJS Notebook

StringRotateLeft

StringRotateLeft[string,n] cycles the characters in string n positions to the left.

StringRotateLeft[string] cycles one position to the left.

Examples

Rotate a string one position to the left:

StringRotateLeft["hello"]
(* "elloh" *)

Rotate a string multiple positions:

StringRotateLeft["hello", 2]
(* "llohe" *)

Please visit the official Wolfram Language Reference for more details.

On this page