Skip to content

Commit

Permalink
Add space
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Apr 20, 2024
1 parent d545f4a commit 00af688
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gleam/list.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,9 @@ pub fn intersperse(list: List(a), with elem: a) -> List(a) {
/// // -> Error(Nil)
/// ```
///
@deprecated("Gleam lists are immutable linked lists, so indexing into them is a slow operation that must traverse the list.
@deprecated("
Gleam lists are immutable linked lists, so indexing into them is a slow operation that must traverse the list.
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.
")
Expand Down

0 comments on commit 00af688

Please sign in to comment.