also


fun functionWithSideEffect(input: String) : String { 
  return doStuff(input).also { 
    log.log("doing stuff to " + input)
  }
}

Back Home Next