gleam icon indicating copy to clipboard operation
gleam copied to clipboard

LSP Code Action: Convert function callback into `use` statement

Open GearsDatapacks opened this issue 1 month ago • 1 comments

For example, turning:

result.map(Ok(1), fn(x) { io.debug(x) })

Into:

use x <- result.map(Ok(1))
io.debug(x)

GearsDatapacks avatar Jun 22 '24 12:06 GearsDatapacks