Replies: 1 comment 1 reply
-
|
Hi! I believe this should work: The second argument specifies the start index (5) and the third argument specifies the desired return type (s32) and the number of elements to slice (5), I have initialized it to 0 but it doesn't matter as it is only used for type deduction. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I found a slice built-in function in DSLX, but I don't understand how to use it.
https://google.github.io/xls/dslx_reference/#slice
Please give me an example.
For example, I have
f: s32[64]how get slice from 5 to 10 element?
Beta Was this translation helpful? Give feedback.
All reactions