I need to select some lists in the nested list of form of {{1,2,3},{2,3,4}}. I have used Select to complete my work. But when I tried Position, it doesn't work. For example,
Flatten@@Position[{{1, 2, 3}, {2, 3, 4}}, _?(# == {1, 2, 3} &)]
gives me the correct answer of $\{1\}$,but when I use
Flatten@@Position[{{1, 2, 3}, {2, 3, 4}}, _?(#[[1;;2]] == {1, 2} &)]
returns the error
Part::take: Cannot take positions 1 through 2 in List. >>
Part::take: Cannot take positions 1 through 2 in List. >>
Part::take: Cannot take positions 1 through 3 in 1 >>
It seems that it is not working with lists, and it is also trying to apply to higher level. Why is it and how to fix that?