Starting with some simple coding methods, I learned many Scala features, so even when I started, I got a lot more things.
- Basic Environment and instructions
Simple small programs can use Scala commands, which can be handed over to scalac as soon as possible.
-
- Refers
Interaction Environment
- Scala
Command
- Scalac
And FSC
- Materials, changes, Operations
All things are objects, and all operations are methods.
-
- Material-type Indexing
- Change
Data and constant data
- Operation
Method
- Data
Value operation
- Operation Order and relationship
- Master
Console egress
- Internal Control Structure
The formula has a round return value, but no round. That's right! Scala does not have break or continue.
-
- If
Formula
- For
Formula
- While
Incircle
- Match
Formula
- Try
Formula
- Correspondence, Class
Start with the customization of some orders, and spend more on the back.
-
- Ticket
Function
- Differences between orders
- Unit
Example object
- Common objects
During the period of change, scala has more features first.
-
- String
- Array
- List
And tuple
- Set
And map