Hello guys so i have a problem about finding even numbers in the list. Im so new in F# and i need to find even numbers in the list with function.
I have the real question:
//Given is a list of integers. Write a recursive function that returns a pair of lists: a list of even numbers //and a list of numbers divisible by three. For example, for the list [1; 2; 3; 4; 5; 6] we should get ([2; 4; 6], [3; 6]).
I tried this :
let list1 = [1; 2; 3; 4; 5; 6; 7; 8; 9; 10]
let evens list1 =
let isEven x = x % 2 = 0
List.filter isEven list1
But its not working. Thank you for your help.