How do I filter numbers which end in other numbers in Haskell? -


for instance, want extract list numbers end in 67: 1637767, 9967, 523467...

compare them modulo 100:

let result = filter ((== 67) . (`mod` 100)) numbers 

Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -