根据值从 plist 打印键?
如何根据给定值迭代并打印 plist 的键?
示例:
; plist
(defun my-list() (list :a "hi" :b "no" :c "go"))
; from that list i want to iterate and print out keys based on values like:
for each x in ("hi" "go") print x
; hoping for:
ac
我是 lisp 新手 - 谢谢:-)
How do i iterate and print the keys of a plist based on given values?
Example:
; plist
(defun my-list() (list :a "hi" :b "no" :c "go"))
; from that list i want to iterate and print out keys based on values like:
for each x in ("hi" "go") print x
; hoping for:
ac
Im new to lisp - thank you :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
类似于
第一行在列表上移动模式。
Something like
The first line moves a pattern over the list.
您可以使用循环宏:
you can use loop macro: