Skip to main content
Code Golf

Return to Answer

edited body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Haskell, 50 bytes

-7 bytes thanks to H.PWiz.

(==)<*>map(map((0-)<$>)).foldr(zipWith(:))e
e=[]:e

Try it online! Try it online!

Haskell, 50 bytes

-7 bytes thanks to H.PWiz.

(==)<*>map(map((0-)<$>)).foldr(zipWith(:))e
e=[]:e

Try it online!

Haskell, 50 bytes

-7 bytes thanks to H.PWiz.

(==)<*>map(map((0-)<$>)).foldr(zipWith(:))e
e=[]:e

Try it online!

added 20 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Haskell, 5750 bytes

-7 bytes thanks to H.PWiz.

(==)<*>map(map(\[a,b]->[a,(0-b])<$>)).foldr(zipWith(:))e
e=[]:e

Try it online! Try it online!

Haskell, 57 bytes

(==)<*>map(map(\[a,b]->[a,-b])).foldr(zipWith(:))e
e=[]:e

Try it online!

Haskell, 50 bytes

-7 bytes thanks to H.PWiz.

(==)<*>map(map((0-)<$>)).foldr(zipWith(:))e
e=[]:e

Try it online!

Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Haskell, 57 bytes

(==)<*>map(map(\[a,b]->[a,-b])).foldr(zipWith(:))e
e=[]:e

Try it online!

AltStyle によって変換されたページ (->オリジナル) /