Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 357 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 357 Bytes

Tris

Write a function with type:

tris : 'a * 'a * 'a * 'a -> bool

such that tris (a,b,c,d) is true iff at least three elements of the quadruple (a,b,c,d) are equal.

Then, test the function through a function with type:

hand : unit -> int * int * int * int

which generates a random quadruple of elements in the range 1..10.