Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions quickref/quickref.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1008,10 +1008,10 @@
& \texttt{xs.lengthCompare(n)} & Returns -1 if xs is shorter than n, +1 if it is longer, else 0. \\\cline{1-3}


Index & \texttt{xs.indexOf(x)} & The index of the first element in xs equal to x.\\ \cline{2-3}
search: & \texttt{xs.lastIndexOf(x)} & The index of the last element in xs equal to x.\\\cline{2-3}
& \texttt{xs.indexOfSlice(ys) \newline xs.lastIndexOfSlice(ys)} & The (last) index of xs such that successive elements starting from that index form the sequence ys.\\\cline{2-3}
& \texttt{xs.indexWhere(p)} & The index of the first element in xs that satisfies p.\\\cline{2-3}
Index & \texttt{xs.indexOf(x)} & The index of the first element in xs equal to x, or -1 if not found.\\ \cline{2-3}
search: & \texttt{xs.lastIndexOf(x)} & The index of the last element in xs equal to x, or -1 if not found.\\\cline{2-3}
& \texttt{xs.indexOfSlice(ys) \newline xs.lastIndexOfSlice(ys)} & The (last) index of xs such that successive elements starting from that index form the sequence ys. Returns -1 if not found.\\\cline{2-3}
& \texttt{xs.indexWhere(p)} & The index of the first element in xs that satisfies p, or -1 if not found.\\\cline{2-3}
& \texttt{xs.segmentLength(p, i)} & The length of the longest uninterrupted segment of elements in xs, starting with xs(i), that all satisfy the predicate p.\\\cline{2-3}
& \texttt{xs.prefixLength(p)} & Same as \texttt{ xs.segmentLength(p, 0)}\\\cline{1-3}

Expand Down