-
Notifications
You must be signed in to change notification settings - Fork 35
[216_52] 迁移 list的测试用例到scheme/base #661
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
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # [216_52] 迁移 list的测试用例到scheme/base | ||
|
|
||
| ## 2026/04/03 迁移 list的测试用例到scheme/base | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,3 +90,44 @@ | |
| ;; identity - 原样返回输入值 | ||
| ;; any? - 判断是否存在真值 | ||
| ;; typed-lambda - 带类型标注的 lambda 语法 | ||
|
|
||
|
|
||
| ;; 六、序对操作 | ||
| ;; pair? - 判断是否为序对 | ||
| ;; car - 获取序对的 car 部分 | ||
| ;; cdr - 获取序对的 cdr 部分 | ||
| ;; set-car! - 修改序对的 car 部分 | ||
| ;; set-cdr! - 修改序对的 cdr 部分 | ||
| ;; caar - 获取 car 的 car | ||
| ;; cadr - 获取 car 的 cdr | ||
| ;; cddr - 获取 cdr 的 cdr | ||
|
|
||
| ;; 七、列表判断 | ||
| ;; null? - 判断是否为空列表 | ||
| ;; list? - 判断是否为列表 | ||
|
|
||
| ;; 八、列表构造 | ||
| ;; make-list - 创建指定长度的列表 | ||
| ;; list - 创建列表 | ||
| ;; cons - 构造序对 | ||
|
|
||
| ;; 九、列表查询 | ||
| ;; length - 获取列表长度 | ||
| ;; append - 连接多个列表 | ||
| ;; reverse - 反转列表 | ||
|
|
||
| ;; 十、列表选择 | ||
| ;; list-tail - 获取列表尾部 | ||
| ;; list-ref - 获取指定索引的元素 | ||
| ;; list-set! - 修改指定索引的元素 | ||
| ;; memq - 按 eq? 查找元素 | ||
| ;; memv - 按 eqv? 查找元素 | ||
| ;; member - 按 equal? 查找元素 | ||
|
|
||
| ;; 十一、关联列表 | ||
| ;; assq - 按 eq? 在关联列表中查找 | ||
| ;; assv - 按 eqv? 在关联列表中查找 | ||
| ;; assoc - 按 equal? 在关联列表中查找 | ||
|
|
||
| ;; 十二、列表复制 | ||
| ;; list-copy - 复制列表 | ||
|
Comment on lines
+94
to
+133
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devel/216_52.md仅有标题和一行日期,缺少 CLAUDE.md 模板要求的以下章节:## 任务相关的代码文件、## 如何测试、以及### What/### Why/### How子章节。参考同类文件devel/216_51.md的完整结构。Context Used: CLAUDE.md (source)