We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c68ea9b commit 631d821Copy full SHA for 631d821
CHANGELOG.md
@@ -2,6 +2,28 @@
2
3
## Unreleased
4
5
+- The language server now offers code actions to wrap a function reference in an
6
+ anonymous function, or to remove a trivial anonymous function, leaving its
7
+ contents. For example:
8
+
9
+ ```gleam
10
+ pub fn main() {
11
+ [-1, -2, -3] |> list.map(fn(a) { int.absolute_value(a) })
12
+ // ^^ Activating the "Remove anonymous function"
13
+ // code action here
14
+ }
15
+ ```
16
17
+ would result in:
18
19
20
21
+ [-1, -2, -3] |> list.map(int.absolute_value)
22
23
24
25
+ while the other action would reverse the change. ([Eli Treuherz](http.github.com/treuherz))
26
27
### Compiler
28
29
- The compiler now performs function inlining optimisations for a specific set
0 commit comments