Skip to content

Instantly share code, notes, and snippets.

@SuperCipher
Created March 24, 2021 11:38
Show Gist options
  • Save SuperCipher/6bede6653ffdaf2f6e98642a017e0310 to your computer and use it in GitHub Desktop.
Save SuperCipher/6bede6653ffdaf2f6e98642a017e0310 to your computer and use it in GitHub Desktop.
filter array with array in elm / functional language
filterProduct : Product.ProductModelList -> Product.ProductModelList
filterProduct productModelList =
List.filter (\x -> List.member x.id ["products-id-uu01","products-id-uu02"]) productModelList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment