Skip to content

Conversation

@dinkelspiel
Copy link
Contributor

@dinkelspiel dinkelspiel commented Sep 30, 2024

This pull request adds Function types Function0 (no arguments and a return), Function1 (1 argument and a return), Function2 (2 argument and a return) and so on all up to 6 arguments and a Nil type.

Example output for function type

types.IsFunction3(
    types.IsString, // Argument 1
    types.IsString, // Argument 2
    types.IsString, // Argument 3
    types.IsResult(types.IsString, types.IsString), // Return
),

Example output for Nil type

types.IsNil

@darky darky merged commit c9820d7 into darky:master Sep 30, 2024
1 check passed
@darky
Copy link
Owner

darky commented Sep 30, 2024

Nice! Thanks!

@darky
Copy link
Owner

darky commented Sep 30, 2024

4.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants