Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object warsztaty {
- println("Welcome to the Scala worksheet") //> Welcome to the Scala worksheet
- val list = List(1, 2, 3, 4, 5) //> list : List[Int] = List(1, 2, 3, 4, 5)
- def dodajJeden(arg: Int) = arg + 1 //> dodajJeden: (arg: Int)Int
- list.map(arg=>arg+1).filter(arg=>arg>3) //> res0: List[Int] = List(4, 5, 6)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement