Skip to content
New issue

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

Generalize the syntax of function types #79

Merged
merged 1 commit into from
Nov 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ object HigherOrderFunctions extends ScalaTutorialSection {
*
* So, `Int => Int` is the type of functions that map integers to integers.
*
* Similarly, `(A1, A2) => B` is the type of functions that take two arguments
* (of types `A1` and `A2`, respectively) and return a result of type `B`.
*
* More generally, `(A1, ..., An) => B` is the type of functions that take `n`
* arguments (of types `A1` to An`) and return a result of type `B`.
*
* = Anonymous Functions =
*
* Passing functions as parameters leads to the creation of many small functions.
Expand Down