C
C#2y ago
Tidan

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

Title
9 Replies
Tidan
Tidan2y ago
recipe[1..^0] was pushed by a teammate, no cant find anything about it online.
Angius
Angius2y ago
Ranges and indices
MODiX
MODiX2y 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
Tidan2y ago
Okay
Angius
Angius2y ago
You can dab on him by rewriting it to [1..] mweh it does the same, from 1st element to last
Tidan
Tidan2y ago
gotcha thats all then
MODiX
MODiX2y 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
LPeter19972y ago
(Just chected something and messages didn't load sorry)
Groophy
Groophy2y ago
@Tidan