(Lisp程序)使用迭代方法创建Pell编号列表

时间:2019-03-19 17:48:32

标签: recursion iteration common-lisp recurrence

我正在研究一个lisp函数,该函数接受输入line-height并生成一个佩尔数字列表,直到第n个数字。 select s.*, e.i, e.x from ( select percentile_approx(probability, array(0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 0.99)) as quantiles from my_table ) s lateral view outer posexplode (s.quantiles) e as i, x ; 返回列表n

现在,我只知道如何使用递归来定义它。有人可以告诉我如何使用迭代方法吗?谢谢。

(pellse 7)

0 个答案:

没有答案