Created
March 24, 2021 11:38
-
-
Save SuperCipher/6bede6653ffdaf2f6e98642a017e0310 to your computer and use it in GitHub Desktop.
filter array with array in elm / functional language
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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