gleam icon indicating copy to clipboard operation
gleam copied to clipboard

LSP Code Action: Desugar `use` expression

Open lpil opened this issue 2 weeks ago • 2 comments

For example, turning:

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

Into:

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

Related to https://github.com/gleam-lang/gleam/issues/3311

lpil avatar Jun 22 '24 14:06 lpil