This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* | |
// SCALA : | |
case class Picture(isMain: Boolean) | |
case class Pictures(pictures: Seq[Picture]) { | |
def hasMain: Boolean = pictures.exists(_.isMain) | |
} | |
val pictures = Pictures(Seq(Picture(false), Picture(true))) | |
println(pictures.hasMain) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +jmlamodiere is my blockchain ID. https://onename.com/jmlamodiere |