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.
This comment is hidden because it contains spoiler information about the solution
I have updated description ("Order of inhabitants in infinite lists won't be tested."), hope it clarifies it. It was complementary task, so I think strictness is unnecessary.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
In addition, according to the approach, mentioned in that paper, you could implement set of all subsets in haskell as
Good question)
Yes, when
count @t
is infinity we could not conclude, thatt
is countable (in mathematical sense).So ℵ0 =
count @Nat < count @[Nat]
= 2ℵ0 in terms of cardinal numbers,and type/set
t
is countable iffcount @t == count @Nat
.We can not express such things in haskell, so when infinity, we just write all formally.
Also if
count @x >= 2
then typeNat -> x
is not countable.