惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
GbyAI
GbyAI
The Cloudflare Blog
小众软件
小众软件
MyScale Blog
MyScale Blog
IT之家
IT之家
H
Help Net Security
宝玉的分享
宝玉的分享
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
博客园_首页
S
SegmentFault 最新的问题
MongoDB | Blog
MongoDB | Blog
The Hacker News
The Hacker News
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
Know Your Adversary
Know Your Adversary
Project Zero
Project Zero
P
Palo Alto Networks Blog
博客园 - 聂微东
罗磊的独立博客
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Engineering at Meta
Engineering at Meta
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
U
Unit 42
Spread Privacy
Spread Privacy
NISL@THU
NISL@THU
Cisco Talos Blog
Cisco Talos Blog
Last Week in AI
Last Week in AI
L
Lohrmann on Cybersecurity
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyberwarzone
Cyberwarzone
G
Google Developers Blog
C
Cybersecurity and Infrastructure Security Agency CISA
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
The GitHub Blog
The GitHub Blog
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 热门话题
T
Tailwind CSS Blog
雷峰网
雷峰网
C
Cisco Blogs

Lisp

大佬们有没有推荐 lisp 的资料,最好是 ansi lisp - V2EX Lem 编辑器, Emacs 的继任者 - V2EX 请问 lisp people, 哪些能力是只有宏能实现,而函数不能实现的? - V2EX 试了试缩进语法写 Lisp - V2EX 是什么原因没有让 lisp 进入工业界(公司)的首选语言呢 - V2EX 一款 lisp 写的基于 GPU 渲染的编辑器 - V2EX SICP 走起 - V2EX The Humble Book Bundle: be a coder - V2EX scheme 一个好玩的开源库 - V2EX lambda calculus 解决了什么问题? 为什么会出现这个理论? 为什么说它很有价值? - V2EX 哪里可以找到关于 ANSI Common Lisp 中函数名字的由来? - V2EX Ask Him Anything: Lisp 社区的核心贡献者 - Kartik Agaram - V2EX 怎么看 Clozure Common Lisp 的 image 的内容? - V2EX 写了一份 Racket/Emacs 的入门配置指南 - V2EX Scheme 与 Church Number - V2EX 用过 racket 的进,其实只要你觉得有兴趣的都可以过来看看 - V2EX 又一个玩具 Scheme 解释器,使用 Python 编写 - V2EX 我使用 GNU Common Lisp 开始 Lisp 的学习 - V2EX 在读 On Lisp - V2EX 学Clojure的朋友们快去做4clojure啊! - V2EX Exercise SICP in Lua - V2EX 想给身边的人推荐lisp但是发现接受的很少 - V2EX Lisp 的 Vim 插件有什么推荐? - V2EX 有人关注ansi common lisp么?可以看一下豆瓣上的这两个贴 - V2EX SICP一書學完大約要多長時間? - V2EX 看了《黑客与画家》就觉得Lisp很强大要去学一下的人弱爆了,你们到底看没看明白作者的中心主旨是什么? - V2EX 求lisp的一些简单demo - V2EX 有对Lisp感兴趣的不? 自从看了黑客与画家就对这个很神往,除了AutoLisp有没有别的著名的应用呢? - V2EX 有人学或用Lisp的吗? - V2EX a haiku - V2EX 在Lisp节点里新建个主题 - V2EX
[101]如何在迭代展开过程中输出中间数据? - V2EX
ZoomQuiet · 2018-01-05 · via Lisp

~> [\[101\]如何在迭代展开过程中输出中间数据? \- Google 网上论坛]( https://groups.google.com/forum/#!topic/lisp-cn/Ny4nBE0igWw)

在 lisp-cn 列表中问出来了:

尝试用命令行跑一下

; member? _v1 尝试将探索过程打印出来

(define member1? ; 声明函式
(lambda (a lat) ; 绑定匿名函式, 接收参数 a lat
(format #t "~a->~a~%" a lat)
(cond ; 系列 if 判定
((null? lat) #f) ; 法则->先检验 目标原子是否为空? 是, 直接退出并返回 #f
(else (or ; 否则 or 一下两种对比
;(define lat1st (car lat))
;(display lat1st)
(eq? (car lat) a) ; 第一个成员是否和 对比原子相同?
;(eq? lat1st a) ; 第一个成员是否和 对比原子相同?
(member1? a (cdr lat)) ; 对其它成员使用 member1 (<--当然的要对应变化否则..) 进行检验
)
)
)
)
)
(define b 'egg)
(define lat `(fried eggs and scrambled egg))
(member1? b lat)

> ༄ chez member1.scm

Chez Scheme Version 9.4
Copyright 1984-2016 Cisco Systems, Inc.

egg->(fried eggs and scrambled egg)
egg->(eggs and scrambled egg)
egg->(and scrambled egg)
egg->(scrambled egg)
egg->(egg)

主要原因是, Calysto/calysto_scheme: A Scheme kernel for Jupyter that can use
Python libraries https://github.com/Calysto/calysto_scheme

这一 Jupyter 插件, 是用 Py 实现的一个 Scheme 模拟器,
本身不是完备的 Scheme 解析器,
缺少很多必要的函式支持,

所以, 切换到 CLI 环境中, 使用确实的 Scheme 运行环境运行,
就能获得预期结果了...

囧 rz...