JanetDocsPlaygroundI'm feeling luckyGitHub sign in
(string/slice "hello") # => "hello" (string/slice "hello" 0) # => "hello" (string/slice "hello" 1) # => "ello" (string/slice "hello" 4) # => "o" (string/slice "hello" 5) # => "" (string/slice "hello" -1) # => "" (string/slice "hello" -2) # => "o" (string/slice "hello" -5) # => "ello" (string/slice "hello" -6) # => "hello" (string/slice "hello" 1 1) # => "" (string/slice "hello" 1 2) # => "e" (string/slice "hello" 1 5) # => "ello" (string/slice "hello" -5 -4) # => "e" (string/slice "hello" -6 -4) # => "he" (string/slice "hello" 2 1) # => "" (string/slice "hello" -1 -2) # => ""