协会 (AutoLISP)
在关联列表中搜索元素并返回该关联列表条目 支持的平台:Windows、Mac OS 和 Web 签名(assoc element alist)
返回值类型:列出或无 alist 条目(如果成功)。如果在 alist 中找不到 element 作为键,则返回 。assocnil 例子(setq al '((name box) (width 3) (size 4.7263) (depth 5))) ((NAME BOX) (WIDTH 3) (SIZE 4.7263) (DEPTH 5)) (assoc 'size al) (SIZE 4.7263) (assoc 'weight al) nil 相关概念 |
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-3-5 17:42
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.