|
Scala example source code file (bug1565.scala)
The Scala bug1565.scala source codeobject Bug1565 { object X0 { 0; (a : Int, b : Int, c : Int) => println(List(a, b)) } def x() = { 0; (a : Int, b : Int) => println(List(a, b)) ; 0 } (a : Int, b : Int) => println(List(a, b)) // various function syntaxes to exercise the parser val xs = List(1,2,3) xs.filter(x => x < 2) xs.filter((x) => x < 2) xs.filter { x => x < 2 } xs.filter { _ < 2 } xs.filter (_ < 2) xs.foreach { e => val buf0 = e + 1 buf0 } } Other Scala examples (source code examples)Here is a short list of links related to this Scala bug1565.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.