Skip to content

How to access an element in a list? #3965

Discussion options

You must be logged in to vote

You don't want to do list access in gleam. Gleam's lists are linked lists, meaning it's O(n) to access an element. You should model your problem differently.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lemorage
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants