1. inglada
  2. 7li7w

Commits

inglada  committed fc1a21a

Multiplication table

  • Participants
  • Parent commits 96a31d7
  • Branches default

Comments (0)

Files changed (1)

File Haskell/day1.hs

View file
 -- Combine colors
 -- use as combineColors ["blue", "yellow", "red"]
 combineColors [] = []
-combineColors aList = [(c1,c2) | c1 <- aList, c2 <- aList, c1 < c2]
+combineColors aList = [(c1,c2) | c1 <- aList, c2 <- aList, c1 < c2]
+
+-- Multiplication table
+multiplicationTable = [(x,y,x*y) | x <- [1..12], y <- [1..12]]