Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Date: 2013may14 Language: Scala Level: Beginner Q. What is the Scala equivalent to the C question mark? A. In C:return a > b ? a : b // Return the maxIn Scala:return if (a > b) a else b
Add a commentSign in to add a comment