So I wanted to add a walk_try!
function to the roc List module. I built roc with cargo build --release
without issue. I then built the snake_case_builtins version of basic-cli from source, and tried to write a simple roc program using walk_try!
. However, roc throws a compile error saying that List does not expose walk_try!
.
which roc
verifies that I am using <path_to_repo>/target/release for my roc binary. I'm sure I must be missing something obvious - any ideas why roc might say the function isn't exposed?
Screenshot 2025-01-09 at 11.13.40.png
Screenshot 2025-01-09 at 11.18.08.png
Yep, builtins also need to be added to a Rust file
Ahah! Thanks Sam, does it matter what number I assign to LIST_WALK_TRY_FX? Should I just assign it the next available number (95)?
Yeah
Next available
Unless you want to organize it a specific way and renumber everything to insert it in a specific location (don't recommend, but occasionally nice to group things)
That's what I figured, but thought I should confirm there wasn't an deliberate order.
Ian McLerran has marked this topic as resolved.
Last updated: Jul 06 2025 at 12:14 UTC