number-sequence Questions

11

Solved

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 ...
Yellowhammer asked 18/12, 2012 at 16:39

6

We are looking to create a vector with the following sequence: 1,4,5,8,9,12,13,16,17,20,21,... Start with 1, then skip 2 numbers, then add 2 numbers, then skip 2 numbers, etc., not going above 2000...
Cosmopolitan asked 8/10, 2021 at 19:31
1

© 2022 - 2024 — McMap. All rights reserved.