使用Quicklisp安装后使用迭代 [英] Using iterate after installing with Quicklisp

查看:50
本文介绍了使用Quicklisp安装后使用迭代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Quicklisp((ql:quickload"iterate"))加载"iterate"程序包时,似乎可以正常加载,但没有一个函数真正起作用.当我输入(iterate:iter(for i from 0 to 10)(collect i))时,我收到一条错误消息,提示变量我是未绑定的",并且出现了一些样式警告,提示COLLECT和FOR是未定义的函数,而FROM是未定义的变量.如果我尝试使用ITER或ITERATE而不是ITERATE:ITER,则会发生相同的事情.我正在使用SBCL.

When I load the "iterate" package using Quicklisp ( (ql:quickload "iterate") ), it seems to load fine but none of the functions really work. When I enter (iterate:iter (for i from 0 to 10) (collect i)), I get an error saying "The variable I is unbound" and several style warnings saying that COLLECT and FOR are undefined functions and FROM is an undefined variable. The same thing happens if I try to use ITER or ITERATE instead of ITERATE:ITER. I'm using SBCL.

推荐答案

子句的运算符"也位于 iterate 包中:

The "operators" of the clauses also reside in the iterate package:

(iterate:iter (iterate:for i from 1 to 10) (iterate:collect i))

Iterate是一个通常方便使用 use-package (或包定义中的:use )的软件包.

Iterate is a package that is often convenient to use-package (or :use in the package definition).

这篇关于使用Quicklisp安装后使用迭代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆