fixing yielding "HELLO" in pkgs.lib#26
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the pkgs.lib README example so that evaluating it returns "HELLO" (rather than yielding a lambda), aligning the documentation with the behavior described in issue #25.
Changes:
- Wrap the example file-lambda in a function application (
(...) {}) so it evaluates to a concrete value.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Updates the pkgs.lib README example so it evaluates to "HELLO" (instead of yielding a lambda) by explicitly applying the top-level function.
Changes:
- Wrap the example lambda in parentheses and apply it to
{}so it evaluates immediately. - Add an explanatory comment about why the parentheses/application are needed.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Updates the pkgs.lib README example to correctly evaluate strings.toUpper "hello" by explicitly applying the top-level function to an argument set, matching the behavior described in Issue #25.
Changes:
- Wraps the example lambda in parentheses and applies it to
{}so it evaluates to"HELLO". - Adds an explanatory note about the need for parentheses when applying the function.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the pkgs.lib README example to demonstrate evaluating the expression (instead of returning a lambda), aligning the documentation with the behavior described in Issue #25.
Changes:
- Wrap the Nix lambda in parentheses and apply it to
{}so the snippet evaluates to"HELLO". - Add an inline comment explaining why parentheses are required in this case.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
#25