linasm - Overview
Pinned Loading
-
Comprehending the For-Comphension ta... Comprehending the For-Comphension talk, Vilnius, Nov 2018
1
sealed abstract class Perhaps[+A] {
2
def foreach(f: A => Unit): Unit
3
def map[B](f: A => B): Perhaps[B]
4
def flatMap[B](f: A => Perhaps[B]): Perhaps[B]
5
def withFilter(f: A => Boolean): Perhaps[A]
-
Output of live coding session "Scala... Output of live coding session "Scala pattern matching: apply the unapply"
1
import java.time.{LocalDate, LocalDateTime, LocalTime}
2
3
/*case */class FullName(val first: String, val last: String)
4
5
object FullName {