Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.2 KB

File metadata and controls

13 lines (8 loc) · 1.2 KB

MinusOne medium #math

by Mustafo Faiz @fayzzzm

Take the Challenge

Given a number (always positive) as a type. Your type should return the number decreased by one.

For example:

type Zero = MinusOne<1> // 0
type FiftyFour = MinusOne<55> // 54

Back Share your Solutions Check out Solutions