Skip to content

Conversation

@17802723
Copy link
Contributor

No description provided.

@17802723 17802723 changed the title [210_10] 实现 bag 更新接口 [210_10] 实现 bag 更新/子集/集合运算接口 Jan 30, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements bag update, subset, and set operation interfaces for SRFI-113, completing the core multiset functionality for the bag data structure.

Changes:

  • Implements bag update operations (adjoin, replace, delete) with both functional and mutating variants
  • Adds bag comparison operators (bag=?, bag<?, bag>?, bag<=?, bag>=?) for subset relationships
  • Implements set operations (union, intersection, difference, xor) with both functional and mutating variants
  • Adds bag-search! for conditional element lookup and update

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
goldfish/srfi/srfi-113.scm Implements all bag update, comparison, and set operation functions following SRFI-113 semantics
goldfish/liii/bag.scm Exports the newly implemented bag functions to make them available in the (liii bag) module
tests/goldfish/liii/bag-test.scm Adds comprehensive tests with documentation for all new bag operations
devel/210_10.md Documents the implementation approach and design decisions for the new bag features

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@17802723 17802723 merged commit 8f8e3fa into main Feb 2, 2026
10 checks passed
@17802723 17802723 deleted the hxh/210_10/bag-update branch February 2, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants