defined function toDoubleException res0_1: Double = 1.0 res0_2: Double = 4.2
Thursday, October 31, 2024
What questions does your neighbor have?
defined function toDoubleException res0_1: Double = 1.0 res0_2: Double = 4.2
defined function toDoubleOption
defined function toDoubleNoNaNOption
defined function toDoubleNoNaNOption
defined function addToDoubleOption
Exercise 1 Implement map
for Option[A]
s:
defined function map
Exercise 2 Implement filter
for Option[A]
s:
defined function filter
Exercise 3 Implement flatMap
for Option[A]
s:
defined function flatMap
defined function addToDoubleOption
defined function toDoubleEither defined function addToDoubleEither
import scala.util.Try defined function toDoubleTry defined function addToDoubleTry
defined function freshVarImperative
defined function freshVar
defined type DoWith
res25: Int => (Int, String) = ammonite.$sess.cmd22$Helper$$Lambda$2244/0x0000000800b87840@3d5721bd
defined function map
defined function flatMap
counter: Int = 0
defined class DoWith defined object DoWith import DoWith._
defined function freshVar
counter: Int = 0