Ad
  • Custom User Avatar

    Is 0 considered positive, or is it considered negative?
    In you code it is considered negative.

  • Custom User Avatar

    What is the input type? I have tried [Int], but then it says:

        • Couldn't match type ‘Integer’ with ‘Int’
          Expected type: [Int]
            Actual type: [Integer]
    

    and if I try [Integer] I get:

        • Couldn't match type ‘Int’ with ‘Integer’
          Expected type: [Integer]
            Actual type: [Int]
    

    Edit: I figured it out... it's Integral a => [a] and the output is String.
    This was not a fun one.

  • Custom User Avatar

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