Creating a list of sequential numbers 1 to N (Ex: [1, 2, 3, ..., 98, 99, 100])

Hello Guys, i want to create a list in which there is an array of sequential numbers

Example:-

n = 9

Then

list = [1,2,3,4,5,6,7,8,9]

Do we have a way to do it in OpenBullet 2?

1 Like
List<string> theNumbersMason = Enumerable.Range(1, 9).Select(i => i.ToString()).ToList();

If you want me to create a block for this, open an issue on github and I will add it

All right Sir! I think Many of us need it, so i will open it!

1 Like

Okay, anyways if you paste that snippet in the LoliCode it will work as intended in the meantime

All RIght! Thank you so much :grinning: :smiling_face_with_three_hearts:

1 Like