You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/gleam/list.gleam
+3-1
Original file line number
Diff line number
Diff line change
@@ -1116,7 +1116,9 @@ pub fn intersperse(list: List(a), with elem: a) -> List(a) {
1116
1116
/// // -> Error(Nil)
1117
1117
/// ```
1118
1118
///
1119
-
@deprecated("Gleam lists are immutable linked lists, so indexing into them is a slow operation that must traverse the list.
1119
+
@deprecated("
1120
+
1121
+
Gleam lists are immutable linked lists, so indexing into them is a slow operation that must traverse the list.
1120
1122
1121
1123
In functional programming it is very rare to use indexing, so if you are using indexing then a different algorithm or a different data structure is likely more appropriate.
0 commit comments