I wanna write a short haskell program, and try and fit it in a single toot. any ideas?
@lizardsquid Mini-challenge: sum of squares on an arbitrary amount of numbers.
@AirportWorld what do you mean by "sum of squares"?
@lizardsquid Basically, sum the squares of each and every input number.
@AirportWorld sumOfSquares = sum . (map (\x -> x^2))
(probably)
Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!
@lizardsquid Basically, sum the squares of each and every input number.