Question: F sharp - Define function to add 2-tuples. Hint: use pattern matching. Test method I need to pass- member this.testAdd () = let actual =

F sharp - Define function to add 2-tuples. Hint: use pattern matching.

Test method I need to pass-

member this.testAdd () = let actual = addTuples (5, 6) (5, 6) let expected = (10, 12) Assert.AreEqual(expected, actual)

- function I need -

let addTuples a b = a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!