Skip to main content
Commonmark migration
Source Link

#Haskell, 40

Haskell, 40

g l@[a,b,c,d]=2*a+3*b+4*c+d+10*minimum l

instead of removing the minimum number from the rest and adding additional 20s, this adds additional 10 for the minimum number.

#Haskell, 40

g l@[a,b,c,d]=2*a+3*b+4*c+d+10*minimum l

instead of removing the minimum number from the rest and adding additional 20s, this adds additional 10 for the minimum number.

Haskell, 40

g l@[a,b,c,d]=2*a+3*b+4*c+d+10*minimum l

instead of removing the minimum number from the rest and adding additional 20s, this adds additional 10 for the minimum number.

edited body
Source Link
proud haskeller
  • 6.1k
  • 1
  • 23
  • 37

#Haskell, 40

g l@[a,b,c,d]=2*a+3*b+4*d+c+10*minimumd]=2*a+3*b+4*c+d+10*minimum l

instead of removing the minimum number from the rest and adding additional 20s, this adds additional 10 for the minimum number.

#Haskell, 40

g l@[a,b,c,d]=2*a+3*b+4*d+c+10*minimum l

instead of removing the minimum number from the rest and adding additional 20s, this adds additional 10 for the minimum number.

#Haskell, 40

g l@[a,b,c,d]=2*a+3*b+4*c+d+10*minimum l

instead of removing the minimum number from the rest and adding additional 20s, this adds additional 10 for the minimum number.

Source Link
proud haskeller
  • 6.1k
  • 1
  • 23
  • 37

#Haskell, 40

g l@[a,b,c,d]=2*a+3*b+4*d+c+10*minimum l

instead of removing the minimum number from the rest and adding additional 20s, this adds additional 10 for the minimum number.