I am trying to write a prolog program that will remove all elements in a list higher than the value X.
For example, I want to remove all elements higher than 50 from this list:
[2,8,18,34,40,44,46,51,52,54,64,66,76,90]
So I get:
[2,8,18,34,40,44,46]