Skip to content

Instantly share code, notes, and snippets.

@Abhilash-Chandran
Created April 22, 2021 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Abhilash-Chandran/ba51e0b00499e68adc797e48ecfcf414 to your computer and use it in GitHub Desktop.
Save Abhilash-Chandran/ba51e0b00499e68adc797e48ecfcf414 to your computer and use it in GitHub Desktop.
generic methods
void main() {
for (int i = 0; i < 5; i++) {
adder(i);
}
}
void adder<int>(int a){
print(a+1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment