HP Forums

Full Version: Position of an element in a list of lists?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.
Reference URL's