<@U856FKRUZ> but the new function won't be able to...
# squarelibraries
d
@Benoit Quenaudon but the new function won't be able to modify the
search
? except if i put lamda parameter
Copy code
fun bar(search: String) {
  saveToRecentSearch(search)
  search = "" // Can't do
}
Copy code
fun bar(search: String, changeSerch: (String) -> Unit { // Possible but a bit painful as I need to write `search = it` in the collect efect
  saveToRecentSearch(search)
  changeSearch("")
}