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.
I see.
RankNTypes
should be made available forTupleSections
to work. The above error will occur when{-# LANGUAGE RankNTypes #-}
is missing. Sorry for the stupid question.How to avoid the following error on the test case
Cannot use Control.Lens
? I did not import anything that relates toControl.Lens
.Which one is required now?
4 (2+avg 10 30) = 13.0
or(avg 4 2) + (avg 10 30) = 23.0
? Thanks really.After skimming the other discourses I found that this problem would very possibly not be tested ;)
Suppose
Since function calls are right associative, then how can we parse
apply incr 1
intoapply incr 1
but notapply (incr 1)
?Do not modify the nested list in your implementation or you won't pass the test ;)
This kata may be more interesting if parameter passing is required. 2333
The standard of register names is not clarified in detail.
In Assembler interpreter (part I), they are described as re alphabetical (letters only). But actually in this kata, to pass the tests, you should allow register names to begin with
_/letters
and follow by_/letters/numbers
, like most common identifiers.Maybe
Data.Map
withzip
ped list?Data.HashMap
is not supported by the Haskell compiler. Could I use something instead?Is it necessary to convert the number to a 3-base number (as a string) when implementing the O(nlogn) algorithm?
I feel sorry that I have used the wrong combinator (S but not I) in implementing function
xor'
, thus modified the type of it.Maybe you could use
unsafeCoerce
inUnsafe.Coerce
.I think the topic isomorphism means more things than constructing bijections. Finishing this kata only requires us to think about making one-to-one correspondence between two certains sets, yet the name isomorphism makes me think that there should be some closed operations on these two sets, which corresponds to each other.
for
churchPow
you could use(&)
fromData.Function
.Loading more items...