Currying subtraction

You can use the subtract function instead of - if you want to right-section subtraction:

map (subtract 1) [1..5]

Leave a Comment