While reading the manual, I found that one can create lists of lists, and they may show like an excel document. Imagine that I have a main list with 2 lists inside:
List 1: Bill ; Clinton
List 2: George; Bush
Then I will the list as an excel documento, where "Clinton" is the B1 cell, George the A2, etc....How can I call a specific item from a list of lists?
Imagine that I want the B2, I want a simple Sprite to say (using the Say block) "Bush", how can I do it? Because when I use the block "item__of [list]", I cannot write "A2" or "b1", etc.
I hope you can uderstand my english and my question...
Thanks all of you. Very simple indeed, but I didnt knew that worked like that.
Do you know any good book, YT chanel, whatever, to learn basic stuff related to Snap? I only use it veeeeery loosely...very few times a year when I have time and when I want to make a simple project just for fun. Well, sorry for the offtopic, maybe better a new topic for that lol
For a simple 2-D array, composing two calls to ITEM is probably best, but you can also accomplish the extraction of individual scalar items by calling ITEM with a list of lists of indices:
The reason this isn't better is that the result is still a 2-D array, but with only the second column of the first row. If you load the APL library, you can use SCALAR VALUE to get the actual item you want: