From 00535068c508f58e84db8df385fc40b788d593ba Mon Sep 17 00:00:00 2001 From: HVukman Date: Sat, 12 Jul 2025 09:58:24 +0200 Subject: Create 329_p2.fs --- challenge-329/hvukman/f#/329_p2.fs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 challenge-329/hvukman/f#/329_p2.fs diff --git a/challenge-329/hvukman/f#/329_p2.fs b/challenge-329/hvukman/f#/329_p2.fs new file mode 100644 index 0000000000..4eee0aff64 --- /dev/null +++ b/challenge-329/hvukman/f#/329_p2.fs @@ -0,0 +1,7 @@ +// Part 2 +let exists (x,y:String) = y.IndexOf(Char.ToUpper x:char) <> -1 && y.IndexOf(Char.ToLower x:char) <> -1 +String.iter (fun x -> if exists (x,"YaaAho") then printf "%c" x ) "YaaAho" +printf "\n" +String.iter (fun x -> if exists (x,"cC") then printf "%c" x ) "cC" +printf "\n" +String.iter (fun x -> if exists (x,"a") then printf "%c" x ) "a" -- cgit