Stream: beginners

Topic: List.where / List.filter


view this post on Zulip Ian Erik Varatalu (Dec 03 2022 at 04:09):

Is there a function to filter a list in the standard library? i could not find anything

view this post on Zulip Ayaz Hafiz (Dec 03 2022 at 04:15):

You can use List.keepIf: https://www.roc-lang.org/builtins/List#keepIf

view this post on Zulip Ian Erik Varatalu (Dec 03 2022 at 04:54):

Got it, thanks!


Last updated: Jul 06 2025 at 12:14 UTC