common-lisp

Python's range() analog in Common Lisp

Python's range() analog in Common Lisp Question: How to create a list of consecutive numbers in Common Lisp? In other words, what is the equivalent of Python’s range function in Common Lisp? In Python range(2, 10, 2) returns [2, 4, 6, 8], with first and last arguments being optional. I couldn’t find the idiomatic way …

Total answers: 11