-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingscriptingAbout Typst's coding capabilitiesAbout Typst's coding capabilities
Description
Description
When slicing an array with a negative start and a count such that the last count elements are sliced, the returned array is empty.
Example:
#{
let s1 = (1,2,3,4).slice(-3, count: 2) // (2, 3)
let s2 = (1,2,3,4).slice(-2, count: 2) // ()
}Reproduction URL
No response
Operating system
No response
Typst version
- I am using the latest version of Typst
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingscriptingAbout Typst's coding capabilitiesAbout Typst's coding capabilities