C
C#3y ago
Tidan

What does 1..^0 mean when used in array.

Title
9 Replies
Tidan
TidanOP3y ago
recipe[1..^0] was pushed by a teammate, no cant find anything about it online.
Angius
Angius3y ago
Ranges and indices
MODiX
MODiX3y ago
Angius#1586
REPL Result: Success
"hello world"[1..^0]
"hello world"[1..^0]
Result: string
ello world
ello world
Compile: 392.250ms | Execution: 34.481ms | React with ❌ to remove this embed.
Tidan
TidanOP3y ago
Okay
Angius
Angius3y ago
You can dab on him by rewriting it to [1..] mweh it does the same, from 1st element to last
Tidan
TidanOP3y ago
gotcha thats all then
MODiX
MODiX3y ago
LPeter1997#3420
REPL Result: Success
new[]{ 1, 2, 3}[1..^0]
new[]{ 1, 2, 3}[1..^0]
Result: int[]
[
2,
3
]
[
2,
3
]
Compile: 391.667ms | Execution: 57.687ms | React with ❌ to remove this embed.
LPeter1997
LPeter19973y ago
(Just chected something and messages didn't load sorry)
Groophy
Groophy3y ago
@Tidan
Want results from more Discord servers?
Add your server