-
-
Notifications
You must be signed in to change notification settings - Fork 370
Open
Description
Only workaround I found was looping through list - weird things happen when list_get_unsafe() is called twice.
On the zig compiler:
Minimum Reproduction
app [main!] { pf: platform "https://github.com/lukewilliamboswell/roc-platform-template-zig/releases/download/0.6/2BfGn4M9uWJNhDVeMghGeXNVDFijMfPsmmVeo6M4QjKX.tar.zst" }
import pf.Stdout
main! = |_args| {
list = ["foo","bar"]
foo = list.first().ok_or("")
bar = list.last().ok_or("")
Stdout.line!(foo.concat(bar))
Ok({})
}Result
Roc crashed: Str does not implement lastExpected behavior
foobarReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels