Ah I see. Surely it'll be more efficient than people writing their own though. Here's mine 😅
remove : Int -> List a -> List a
remove index list =
list
|> List.indexedMap Tuple.pair
|> List.filter (\( i, _ ) -> i /= index)
|> List.map Tuple.second
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Mostly because it’s inefficient, but that might be fixed in the future
Ah I see. Surely it'll be more efficient than people writing their own though. Here's mine 😅