Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
And then you look at all the other languages which don't wrap the list/vector/array/collection with an optional type. So why should haskell? "null" in another languages it not the same as "Maybe" in haskell !!
If the input array is empty or null, return an empty array:
that's why i'm reporting an issue
In haskell it's an anti-pattern to represent False by the string "False". Maybe String is the right return type here.
My point is if a kata builds upon (the knowledge gained of) another kata, that the latter one should be offered first by codewars. Or get some notification about it.
Question: “A farm contains chickens and cows. There are x legs and y heads. How many chickens and cows are there?”
Line of tescase: animals 72 200
shouldBe
Just (44,28)Line of code: animals --Code
you have to fill in: animals y x =
for it to make sense
"there are x legs and y heads" --> x first then y
"animals 72 200" --> y first then x
Lame kata after already solving https://www.codewars.com/kata/beginner-lost-without-a-map
Too similar to https://www.codewars.com/kata/hex-to-decimal
Pretty lame kata after already having solved https://www.codewars.com/kata/is-the-string-uppercase this one should be removed or the order in which kata's are offered should be adjusted.
too similar to https://www.codewars.com/kata/calculate-average
too similar to https://www.codewars.com/kata/get-the-mean-of-an-array
Haskell, this kata is broken
/tmp/haskell117113-5-krdjxg.m7t3i35wmi/Banjo.hs:1:53:
Not in scope:
main' Perhaps you meant
min' (imported from Prelude)Haskell: This kata is lame after already completed https://www.codewars.com/kata/square-every-digit https://www.codewars.com/kata/noobcode-01-supersize-me-dot-dot-dot-or-rather-this-integer https://www.codewars.com/kata/alan-partridge-ii-apple-turnover https://www.codewars.com/kata/parse-float
Haskell:
/tmp/haskell117113-5-144mrrq.db2fgsnhfr/Lightsabers.hs:1:53:
Not in scope:
main' Perhaps you meant
min' (imported from Prelude)Also this kata is lame after already having completed https://www.codewars.com/kata/jennys-secret-message remove this kata or do something about the order in which kata's are offered.
(Haskell)
Return an array, where the first element is the count of positives numbers and the second element is sum of negative numbers.
When there are 0 element in the list then there are also 0 positive element. The first element to return is therefor 0. Since there are no negative numbers it can also not be summed and there is no second element. Given the return type of [Int] the best answer is [0] not []
There is no reason for the input type to be wrapped in Maybe.
The best type for the output is (Int, Maybe Int)
Input list should not be wrapped in a Maybe
Loading more items...