Created
November 3, 2022 08:24
-
-
Save hades2510/1f99c7736d23046705fc60001ea34bb6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type FIBONACCI< | |
C extends Byte, | |
A extends Byte = ONE_BYTE, | |
B extends Byte = ONE_BYTE | |
> = ONE_BYTE extends C | |
? A | |
: AddOne<ONE_BYTE> extends C | |
? A | |
: FIBONACCI<SubtractOne<C>, Add<A, B>, A>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment