Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 1.85 KB

File metadata and controls

15 lines (10 loc) · 1.85 KB

Length of Tuple 初級 #tuple

by sinoon @sinoon

挑戦する    English 简体中文 한국어

タプルTを受け取り、そのタプルの長さを返す型Length<T>を実装します。

例えば:

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

戻る 解答を共有 解答を確認