Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

battle language sample

View gist:1948301
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import Control.Monad
import Data.List
 
 
-- http://xkcd.com/287/
-- On voudrait pour 15.05 € de tapas; SVP
menu = [("gambas" ,215),
("aceitunas" ,275),
("choquitos" ,335),
("empanada" ,355),
("jamon" ,420),
("tortilla" ,580)]
main = print $ head $
[ map fst y |
i <- [1..],
y <- replicateM i menu,
sum (map snd y) == 1505]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.