8000 Remove function types from functions section · soronpo/scala.github.com@a2e2b99 · GitHub
[go: up one dir, main page]

Skip to content

Commit a2e2b99

Browse files
committed
Remove function types from functions section
Readers don't necessarily need to know how to write function types to start playing with Scala. I thought it probably is too much information at this point.
1 parent 4f8f621 commit a2e2b99

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tutorials/tour/basics.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,6 @@ greet("Scala developer")
9595
// How are you doing today?
9696
```
9797

98-
You can write the corresponding function types like below.
99-
100-
```
101-
Int => Int
102-
(Int, Int) => Int
103-
() => Int
104-
String => Unit // "Unit" is equivalent of "void" in Scala.
105-
```
106-
107-
Left hand side of `=>` is parameter type(s) and right hand side of it is return type.
108-
10998
We will cover functions in depth [later](anonymous-function-syntax.md).
11099

111100
## Classes

0 commit comments

Comments
 (0)
0