diff options
| -rw-r--r-- | challenge-329/hvukman/f#/329_p2.fs | 7 |
1 files changed, 7 insertions, 0 deletions
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" |
