Skip to content

Commit

Permalink
respond to review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Oct 19, 2024
1 parent 562b744 commit 633ed9b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions _overviews/FAQ/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,13 @@ accept given parameters and
[polymorphic functions]({{ site.scala3ref }}/new-types/polymorphic-function-types.html)
have type parameters.

Most code uses methods most of the time,
unless a function value is actually needed. With
[eta-expansion](https://stackoverflow.com/questions/39445018/what-is-the-eta-expansion-in-scala),
a method can be converted as a function when needed.
It's standard to use methods most of the time,
except when function value is actually needed.
[Eta-expansion](https://stackoverflow.com/questions/39445018/what-is-the-eta-expansion-in-scala),
converts methods to functions when needed.
For example, a method such as `map` expects a function,
but even if you `def square` as shown above, you can
still `xs.map(square)`.

### What's the difference between types and classes?

Expand Down

0 comments on commit 633ed9b

Please sign in to comment.