<@U0B97HBLG> the closest I’m aware of (both in jav...
# announcements
p
@pardom the closest I’m aware of (both in java and kotlin) is:
Copy code
private val id = { x: Any -> x }
  @Suppress("UNCHECKED_CAST")
  fun <A: Any> identity(): (A) -> A = id as ((A) -> A)