Updated on 2026-08-14
This commit is contained in:
parent
3bd0f8d01a
commit
6373b5a8a3
4 changed files with 65 additions and 18 deletions
|
|
@ -152,4 +152,10 @@ sealed class Lce<out E : Any, out C : Any> {
|
|||
|
||||
return this
|
||||
}
|
||||
|
||||
fun onContent(action: (content: C) -> Unit): Lce<E, C> {
|
||||
if (this is Content) action(this.content)
|
||||
|
||||
return this
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue