There are many ways to extract different parts of lists in Mathematica. For example, the first part of a list v can be accessed either as v[[1]] or First[v] or Take[v,1]. Likewise the last element can be accessed as v[[-1]], Last[v] or Take[v,-1]. Similarly v[[2;;]] is equivalent to Rest[v] and to Drop[v,1], and v[[;;-2]] is equivalent to Most[v] and Drop[v,-1].
The more specialized functions First, Last, Rest and Most are marginally more efficient. On the other hand, it makes sense to use the more general Part ([[ ]]) or Take/Drop if it is part of a calculation that also requires parts to be accessed that do not have a specialist function.
Beyond these considerations, are there any reasons to prefer Part over Take/Drop or the more specialized functions, other than personal preferences over coding style?
\[LeftDoubleBracket]and\[RightDoubleBracket]greatly helps readability compared to[[and]]in the frontend – acl Apr 09 '12 at 09:25func @ arg) and infix (a ~func~ b). – Mr.Wizard Apr 09 '12 at 14:06\[LeftDoubleBracket]formats to〚in the FrontEnd; it can be entered withEsc[[Esc.) – Mr.Wizard Apr 09 '12 at 15:16First/Lastare so elitist. Why notFirstAmongEqualsandLastButNotLeast? – Jens Apr 09 '12 at 15:20Esc-[[-Escit still requires four key strokes to two. Definitely inefficient. :) – rcollyer Apr 09 '12 at 15:22FullFormof those characters. – Mr.Wizard Apr 09 '12 at 15:37Ctrl+[/]I use Ctrl+Alt+Shift+] for inserting〚 〛and placing the cursor in the middle. Do you? – Mr.Wizard Apr 09 '12 at 15:46