mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Improved scala syntax
This commit is contained in:
parent
408551e190
commit
0bae80d4b5
9 changed files with 61 additions and 10 deletions
|
@ -0,0 +1 @@
|
|||
def name(parameter: String): Unit = { code ... }
|
|
@ -0,0 +1,6 @@
|
|||
class Person (
|
||||
val firstName: String,
|
||||
var lastName: String,
|
||||
age: Int) {
|
||||
println("This is the constructur.")
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
val name: type = value
|
|
@ -0,0 +1 @@
|
|||
var name: type = value
|
Loading…
Add table
Add a link
Reference in a new issue