Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 1.48 KB

File metadata and controls

16 lines (10 loc) · 1.48 KB

All medium #array

by cutefcc @cutefcc

Take the Challenge    简体中文

Returns true if all elements of the list are equal to the second parameter passed in, false if there are any mismatches.

For example

type Test1 = [1, 1, 1]
type Test2 = [1, 1, 2]

type Todo = All<Test1, 1> // should be same as true
type Todo2 = All<Test2, 1> // should be same as false

Back Share your Solutions Check out Solutions