language server: suggest functions based on first parameter #3366
orvitpng
started this conversation in
Ideas & suggestions
Replies: 1 comment 3 replies
-
I presume that there should be a |> in the example code there? What would the programmer do when they want a function where the first argument is not of that type? One can pipe to any position in Gleam. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the purposes of this suggestion, we will use the following code:
Now, take into account imported modules and their functions, filter out all functions where the first parameter is a String, and then provide that to the client. For instance, an end user could do
value.leng [Enter]
and that would convert tostring.length(value)
.Beta Was this translation helpful? Give feedback.
All reactions