A list is confused as a number

I am working on my infinite lists project (basically streams but not)

After it says the score had been multiplied or divided, it errors saying that the item () of block is getting a number instead of a list.

forum help script pic (1)

At first glance I think this is probably wrong. I’m assuming from the name that the domain of NEXT ITEM OF IL is ILs, whereas its range is whatever the IL is a list of – numbers or whatever. So your variable A has to be a list (an IL) the first time this is run, but an item of an IL the second time.

[entering teacher mode]
The second and third most important words in computer science (after abstraction) are domain and range. Especially in programs that involve lists, not keeping the domains and ranges of one’s procedures straight is the most common source of bugs. This is why some people think languages for learners should enforce type discipline by making you declare the types of variables and of procedure inputs and outputs, like Java. But I think it’s better for learners to have to think about this themselves rather than rely on the language to find their bugs.
[leaving teacher mode]

Of course now I’ll be embarrassed if I’m wrong about your bug. :~)

I think I solved it… I was writing item n of a instead of item n of item 1 of a
edit: That did not work