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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -