We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What? Currently method declaration for generic type seems haven't implemented yet.
Why? For instance, we cannot declare method for types like List<element>
List<element>
How? Generic type method of specific type:
def List<Num>.<method-name>(<params: type>): <output> do ... end
Generic type method of generic type:
def List<element: T>.<method-name>(<params: type | T>): <output | T> do ... end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What?
Currently method declaration for generic type seems haven't implemented yet.
Why?
For instance, we cannot declare method for types like
List<element>
How?
Generic type method of specific type:
Generic type method of generic type:
The text was updated successfully, but these errors were encountered: