Ad
  • Default User Avatar

    I'm also getting this error but i DO have RankNTypes enabled..

  • Default User Avatar

    A bijection is an isomorphism in the category of sets, meaning that it is just an invertible one-to-one mapping between two sets.Many categories can be thought of as sets with additional structure (e.g. groups, rings, differentiable functions etc.) and an isomorphism requires the structure of the category to be preserved. For example if you are mapping in the category of groups, then you need to map the identity element of the first group to the identity of the second group and you need to preserve the group law so that f(a*b) = f(a).f(b) where * is the group operation of the first group and . is the operation in the second group.

    The fact that there is a hint in the instructions to look at the wikipedia page for a bijection rather than the category theory definition of an isomorphism is actually a fairly subtle clue how to solve one of the parts of the kata which can only be solved by possibly breaking the isomorphism structure.

  • Default User Avatar

    I don't think the current syntax supports passing functions as arguments and calling them inside a function. 🤔

  • Custom User Avatar

    @WinterShiver What do you mean by that? Not sure I understand the statement.

  • Custom User Avatar

    What's the difference? Honest question.

  • Custom User Avatar