aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gleam/list.gleam4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gleam/list.gleam b/src/gleam/list.gleam
index f99b729..17ee57d 100644
--- a/src/gleam/list.gleam
+++ b/src/gleam/list.gleam
@@ -1436,6 +1436,10 @@ pub fn scan(
///
/// Returns `Error(Nil)` if the list is empty.
///
+/// This function runs in linear time.
+/// For a collection oriented around performant access at either end,
+/// see `gleam/queue.Queue`.
+///
/// ## Examples
///
/// > last([])