Snippets

Cameron Presley Recreating List.Filter

Created by Cameron Presley
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

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.