//arrow-core/arrow.core/Ior/fold

fold

common inline fun <C> fold(fa: (A) -> C, fb: (B) -> C, fab: (A, B) -> C): C

Applies fa if this is a Left, fb if this is a Right or fab if this is a Both

Return

the results of applying the function

Parameters

common

   
fa the function to apply if this is a Left
fb the function to apply if this is a Right
fab the function to apply if this is a Both

Do you like Arrow?

Arrow Org
<