Ad
  • Default User Avatar

    I also thought they would be stricter.

    I liked that they weren't, which meant I had to create extra type families and thus I learnt a lot more about the pattern, buuuuuut... if this were marked in the description somehow, I'd have scored a victory on first pass, which is always nice (and the amount of times you do this is tallied in your profile!)

    So... more information, pwetty please? :3

  • Custom User Avatar
  • Custom User Avatar

    I hope you mean 'semantically correct' ...

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Well, I did told you to reuse the combinators to prevent expanding into SK hell ;-)

  • Custom User Avatar

    As mentioned in the comments at the beginning of part 4, that type should really be something like forall a. Bool a, but it's not possible to encode that type there, and lambda calculus Booleans require a more expressive system then STLC (e.g System F) to encode.

    So you just need to write something that's semantically correct, which then you can either remove that type annotation, or change it to something that matches your correct type.

    Incidentally, you can even write not' with a type of SKI (Bool' (Bool' a) -> Bool' a) instead of SKI (Bool' a -> Bool' a) and get a lambda term that's completely correct.

  • Custom User Avatar

    The comparison is done recursively.

    A more appropriate wording would be select the one with the largest width of the first element of the array in which they differ :)

  • Custom User Avatar

    Did you also follow the order in which the pieces should be cut and ordered?

    See the question I raised below :)

  • Custom User Avatar
  • Custom User Avatar

    Actually the test case is something like

    solve [[False]] (0, 0) (0, 0)
    

    So Nothing is expected.
    I didn't mention this in the description, I'll add it now.
    Thx for feedback

  • Custom User Avatar
  • Default User Avatar

    No answer so resolved.

  • Custom User Avatar

    Alright, feel free to reopen the issue, in case it happens again.

  • Custom User Avatar

    Could you please specify in more detail? I can't find one.

  • Default User Avatar

    Corrected! I changed the description... but not that part. Marked as resolved if you consider it is. Thanks for the feedback!

  • Loading more items...