1 2 3 4
let rec customFilter elements func = match elements with | [] -> [] | head::tail -> if func head then head :: customFilter tail func else customFilter tail func
You can clone a snippet to your computer for local editing. Learn more.