Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lamba not documented? #23223

Open
jorgeluismireles opened this issue Dec 20, 2024 · 3 comments
Open

Lamba not documented? #23223

jorgeluismireles opened this issue Dec 20, 2024 · 3 comments
Labels
Status: Confirmed This bug has been confirmed to be valid by a contributor. Unit: Documentation Bugs/feature requests, that are related to the documentations.

Comments

@jorgeluismireles
Copy link

jorgeluismireles commented Dec 20, 2024

Describe the issue

I couldn't find lamba usage (See #23221) in documentation.

Links

https://docs.vlang.io/introduction.html

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Huly®: V_0.6-21658

@jorgeluismireles jorgeluismireles added the Unit: Documentation Bugs/feature requests, that are related to the documentations. label Dec 20, 2024
@JalonSolov
Copy link
Contributor

V just doesn't call them "lambdas". See https://docs.vlang.io/functions-2.html#anonymous-&-higher-order-functions and the following section on Closures.

@jorgeluismireles
Copy link
Author

I mean I couldn't find examples of | syntax like this:

p := my.to_str(|m| m.path) //ok

@JalonSolov
Copy link
Contributor

Ah, I see. Yes, you are correct - that syntax is not documented in the regular docs.

@JalonSolov JalonSolov added the Status: Confirmed This bug has been confirmed to be valid by a contributor. label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Confirmed This bug has been confirmed to be valid by a contributor. Unit: Documentation Bugs/feature requests, that are related to the documentations.
Projects
None yet
Development

No branches or pull requests

2 participants