twisterrob
01/27/2018, 9:08 PMfun <T, R> T.when(block: T.() -> R)
(when
is in backticks to escape keyword, but Slack can't handle it) to get a this
with a single block, because the inner block has those arrow-expressions, which is only valid inside real `when`s.