Skip to content

Instantly share code, notes, and snippets.

@ianks
Created October 15, 2020 00:52
Show Gist options
  • Save ianks/8b0b6c16050c44d88e8aabae31e6c4eb to your computer and use it in GitHub Desktop.
Save ianks/8b0b6c16050c44d88e8aabae31e6c4eb to your computer and use it in GitHub Desktop.
def sum_price(items: Enumerable<RespondTo[price: Integer]>
# ...
end
@ianks
Copy link
Author

ianks commented Oct 15, 2020

also, return type should be inferred when possible

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