Ad
  • Custom User Avatar

    You are introducing an Eq a constraint with your use of elem. Don't use elem ( or elemIndex ). find and findIndex do not introduce such a constraint.

    The given signature is [[a]] -> [a]. You can't just go around adding constraints to given signatures; you're not implementing the spec.

  • Custom User Avatar
  • Custom User Avatar

    Same problem.

    multiple numbers should sum to correct total
    Expected 1927.2828119841463, but instead got 1927.2828119841465
    multiple numbers with negatives should sum to correct total
    Expected -5147.9807804336315, but instead got -5147.980780433631