Is there a simple way to generate a List of a range of numbers? Right now I just have pins = [0, 1, 2, 3, 4, 5, 6]
which is mostly fine but I'm just wondering if there's something like List.range(0, 6)
that I'm missing.
https://www.roc-lang.org/builtins/List#range
Oh perfect, not sure how I missed that :sweat_smile: Is there a reason why some of the docs for builtin functions show their type annotation and others, like range
, do not?
bug?
weird
yeah seems like a docs bug! Can you open an issue for that one?
https://github.com/roc-lang/roc/issues/5023
awesome, thanks!
Last updated: Jul 05 2025 at 12:14 UTC