Skip to content

Fix #158: Update LLM guide map example to use fn destructuring syntax#159

Merged
andreasronge merged 1 commit intomainfrom
claude/issue-158-20251209-175607
Dec 9, 2025
Merged

Fix #158: Update LLM guide map example to use fn destructuring syntax#159
andreasronge merged 1 commit intomainfrom
claude/issue-158-20251209-175607

Conversation

@andreasronge
Copy link
Copy Markdown
Owner

Summary

Updates the map iteration example in docs/ptc-lisp-llm-guide.md to demonstrate the new vector destructuring syntax instead of the old first/last workaround pattern.

This completes the documentation updates for Epic #147 (Function Parameter Destructuring).

Changes

  • Line 263: Updated map example from (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

Update the map iteration example in docs/ptc-lisp-llm-guide.md to
demonstrate the new vector destructuring syntax instead of the old
first/last workaround pattern. This aligns the documentation with
the completed fn parameter destructuring feature from Epic #147.

Fixes #158
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 9, 2025

PR Review: Fix #158: Update LLM guide map example to use fn destructuring syntax

Summary

Minimal documentation update that changes a single example in the LLM guide from the old first/last workaround pattern to the idiomatic vector destructuring syntax. Clean and well-scoped change.

What's Good

Issues (Must Fix)

None.

Suggestions (Optional)

None - the change is minimal and correctly scoped.

Security

No concerns - documentation-only change.

Documentation

  • ✅ The LLM guide example now demonstrates the preferred idiomatic pattern
  • ✅ Spec document (ptc-lisp-fn-destructuring-spec.md) correctly retains the old pattern as "before" context in Section 1.2 - this is intentional and should not be changed
  • ✅ Special Forms section (lines 213-215) already shows destructuring syntax from prior work
  • ✅ Common Mistakes table doesn't have the old workaround entry (either removed in prior PR or never added)

Verification

Verdict

Approve - This is a well-scoped, correctly implemented documentation update that completes Epic #147.

@github-actions github-actions bot added the auto-triage-pending Auto-triage in progress label Dec 9, 2025
@andreasronge andreasronge added the ready-to-merge PR is ready to be merged label Dec 9, 2025
@andreasronge
Copy link
Copy Markdown
Owner Author

Auto-Triage Summary

Review Analysis

The automated review found zero issues requiring action. This PR is a clean, minimal documentation update that:

  • Updates exactly the line specified in issue Update LLM guide map example to use fn destructuring syntax #158 (line 263 of LLM guide)
  • Correctly applies the fn [[key value]] destructuring pattern per spec Section 5.1
  • Passes all quality checks (954 tests, format, compilation)
  • Appropriately scoped as a documentation-only change

Decisions Made

# Issue Decision Action
- No issues found - -

Status

  • FIX_NOW items: 0
  • Issues created: 0
  • Items ignored: 0

Ready to merge - All review criteria met, no action items required.

@github-actions github-actions bot added auto-triage-cycle-1 Auto-triage cycle 1 auto-triage-complete Auto-triage completed and removed auto-triage-pending Auto-triage in progress labels Dec 9, 2025
@andreasronge andreasronge enabled auto-merge (squash) December 9, 2025 18:00
@andreasronge andreasronge merged commit 5cfaf67 into main Dec 9, 2025
4 checks passed
@andreasronge andreasronge deleted the claude/issue-158-20251209-175607 branch December 9, 2025 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-triage-complete Auto-triage completed auto-triage-cycle-1 Auto-triage cycle 1 ready-to-merge PR is ready to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update LLM guide map example to use fn destructuring syntax

1 participant