Discussion Overview
The discussion revolves around finding a more compact way to index elements from a list in Mathematica using a list of indices. Participants explore alternatives to the standard indexing method, considering comparisons with MATLAB syntax and discussing the use of specific Mathematica functions.
Discussion Character
- Exploratory, Technical explanation, Debate/contested
Main Points Raised
- One participant asks if there is a shortcut for indexing a list using a list of indices.
- Another participant suggests list comprehensions but clarifies that the focus is on Mathematica's indexing.
- A participant compares the desired functionality to MATLAB's syntax for indexing arrays with an array of indices.
- One participant proposes using the syntax MyList[[ Sequence @@ ind ]] as a potential solution.
- Another participant expresses interest in understanding the use of @@ in Mathematica, providing examples of its application with the Sqrt function.
- A later reply suggests using FullForm to understand the structure of expressions involving @@.
Areas of Agreement / Disagreement
Participants do not reach a consensus on a definitive solution, and multiple approaches are discussed without agreement on the best method.
Contextual Notes
There is uncertainty regarding the behavior of the proposed methods, especially in relation to multidimensional lists and the specific outcomes of using @@.