在Python中你可以这样写:
def firstn(n): num = 0 while num < n: yield num num += 1
什么是lisp相当于此?
lisp generator common-lisp
common-lisp ×1
generator ×1
lisp ×1