Contact: aviboots(AT)netvision.net.il
39,994 questions
51,939 answers
573 users
let arr = [|1; 2; 3; 4; 5|] let dictionary = dict [ for v in arr -> v, if v % 2 = 1 then "Odd" else "Even" ] for dic in dictionary do printfn "%d - %s" dic.Key dic.Value (* run: 1 - Odd 2 - Even 3 - Odd 4 - Even 5 - Odd *)