cmd+k|ctrl+k
cmd+k
ctrl+k
Navigation
Browse public code snippets.
Contact us about glot.io.
Read the privacy policy.
Manage snippets in your account.
Open your account settings.
Languages
Create a new Python snippet.
Create a new TypeScript snippet.
Create a new C snippet.
Create a new Rust snippet.
Create a new Java snippet.
Nim
unlisted
legacy-anonymous
2016-10-07T07:59:27Z
var mySeq = @[1, 2, 3, 4, 5] echo "Last element: ", mySeq[^1] echo "Last two: ", mySeq[^2..^1]