Fix #158: Update LLM guide map example to use fn destructuring syntax#159
Merged
andreasronge merged 1 commit intomainfrom Dec 9, 2025
Merged
Fix #158: Update LLM guide map example to use fn destructuring syntax#159andreasronge merged 1 commit intomainfrom
andreasronge merged 1 commit intomainfrom
Conversation
4 tasks
Contributor
PR Review: Fix #158: Update LLM guide map example to use fn destructuring syntaxSummaryMinimal documentation update that changes a single example in the LLM guide from the old What's Good
Issues (Must Fix)None. Suggestions (Optional)None - the change is minimal and correctly scoped. SecurityNo concerns - documentation-only change. Documentation
Verification
VerdictApprove - This is a well-scoped, correctly implemented documentation update that completes Epic #147. |
Owner
Author
Auto-Triage SummaryReview AnalysisThe automated review found zero issues requiring action. This PR is a clean, minimal documentation update that:
Decisions Made
Status
✅ Ready to merge - All review criteria met, no action items required. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the map iteration example in
docs/ptc-lisp-llm-guide.mdto demonstrate the new vector destructuring syntax instead of the oldfirst/lastworkaround pattern.This completes the documentation updates for Epic #147 (Function Parameter Destructuring).
Changes
(map (fn [entry] {:cat (first entry) :avg (avg-by :amount (last entry))}) grouped)to(map (fn [[key value]] {:cat key :avg (avg-by :amount value)}) grouped)This demonstrates the idiomatic destructuring pattern that is now available and preferred over the verbose workaround.
Fixes #158