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.
It was fun to discover nega-binaries. But in the meantime, I realized that ternary (base 3) numbers offer negatives more naturally by using the digit
-1
instead of2
, so we have numbers..., ˧11, ˧˧, ˧0, ˧1, ˧, 0, 1, 1˧, 10, 11, 1˧˧, ...
.Also, for binaries we can simply add another terminator besides the zero end, which corresponds to infinite
1
digits to the left, but it actually acts in all means as-1
.Thank you very much.
Sorry, I lost focus and could have turned to this somewhat later only..
Indeed, thanks for clarifications. Added
true, false, if
as requirement.I clarified it at each occurence. I'd prefer to keep the shorter name.
Well, yes, actually it's still in almost draft state. Very beta yet :)
Thanks for all the feedback, will work on them tomorrow.
About the left or right operator precedence, everything is read and executed from left to right, and actually function composition is associative and indeed the nature of (how we write) function application suggests the right-to-left flow.
My comments:
labelDepth
a bit more detailed description would be nice.runWriterMonoid
means just the opposite of the expected one, especially for lists.runWriterMonoid
andrunWriterList
it would be good to add thatFree (Writer w) a
is also a functor inw
.omg
Originally I thought we can allow more arguments, however, it's indeed much clearer to exclude that case as well.
Updated the kata and even separated the testcases accordingly.
I tried to solve it using
sized
generators, but for some reason its performance was even poorer. Finally I simply added random weights, and for me it seems to be stable enough.Please verify, confirm and/or resolve.
Sorry, I'm indeed total inactive in this page for a while, but rarely I react on mail notifications.
I'm happy that my kata is being pushed forward.
There's a class
B
defined as below, with a methodf
. We defineb=B()
, assert to the return value ofb.f()
then modifyb.y
, then assert again.This comment is hidden because it contains spoiler information about the solution
add
andmult
if getting called.id
really does nothing but saves its input value in order toexpect_value
can compare it.Updated.
There's no further requirement for that case, you're free to always use the first seen value. The tests should accept any value seen for
d[1]
. From the kata description:Loading more items...