HP Forums
Position of an element in a list of lists? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Position of an element in a list of lists? (/thread-4369.html)



Position of an element in a list of lists? - Didier Lachieze - 07-17-2015 03:53 PM

The POS function doesn't seem to work with a list of lists.

For example, with L1:={{1,2},{3,4}} then POS(L1,{1,2}) returns 0 and not 1 as I was expecting.

Is this normal?


RE: Position of an element in a list of lists? - roadrunner - 07-17-2015 04:07 PM

In Home I typed CAS.POS(L1,{1,2}) and got 1. In cas view you don't need the CAS. in front of POS. Didn't try it in RPN view.