Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.78 KB

File metadata and controls

15 lines (10 loc) · 1.78 KB

Length of Tuple easy #tuple

by sinoon @sinoon

Take the Challenge    简体中文 日本語 한국어

For given a tuple, you need create a generic Length, pick the length of the tuple

For example:

type tesla = ['tesla', 'model 3', 'model X', 'model Y']
type spaceX = ['FALCON 9', 'FALCON HEAVY', 'DRAGON', 'STARSHIP', 'HUMAN SPACEFLIGHT']

type teslaLength = Length<tesla>  // expected 4
type spaceXLength = Length<spaceX> // expected 5

Back Share your Solutions Check out Solutions