From Sen
Hi,
Given a list, say xx: [2,1,3,3,5], how would I use 'sublist' to
extract the indices where '3' occurs?
I know I can write a routine checking whether each element xx[i] = 3
or not and print out the indices 'i'.
What I want to know is how to implement a predicate in 'sublist'
which will work.
I can't resist to this one, this is really funny, the best of the day.
Happy day.
Also: Read the documentation of sublist, if gives the values of element of the
list, so how can you extract any number that is not on the list?.
Consider l:=[fun,fun,morefun]
what values of this list are equal to the position of fun?
Also: there is a list function position
:lisp (position 3 '[1 2 3 4 5 6 3 3 3])
Again, sorry but i can resist to this one,too funny for me.