Netlogo: Retrieve position of a nested list given an element of the nested list -


I want to retrieve the status of the nested list given to the element of the nested list. For example, a list of lists is given, [[1.1 AB] [1.2 cd] [1.3 EEF]] I would like to get position 1 given element 1.2.

What was said in this question as it is:

Your Special Issues In order to remove the sublisting element you are looking for, and to get its index, you can use a combination:

  observer> Show status 1.2 map before [[1.1 "a" "b"] [1.2 "c" "d"] [1.3 "e" "F"]] Supervisor: 1    < / html>

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -