···88[ ] deprecate anything that promotes slow code (delete maybe)
99[ ] the append/lens optimisation
1010[ ] measure when O(log n) concat is worth it vs not, heuristics etc
1111-[ ] deprecate iv.range
1111+[x] deprecate iv.range
+3-3
src/iv.gleam
···5555//// [new](#new "Create an empty array"),
5656//// [wrap](#wrap "A single element"),
5757//// [repeat](#repeat "Repeat a single element"),
5858-//// [range](#range "Range of integers"),
5958//// [from_list](#from_list "Convert a list to an array"),
6059//// [from_reverse_list](#from_reverse_list "Convert a reversed list to an array"),
6160//// [from_yielder](#from_yielder "Consume any yielder to build an array"),
···294293/// Convert an array to a standard Gleam list.
295294///
296295/// ```gleam
297297-/// to_list(range(1, 5))
296296+/// to_list(initialise(5, fn(x) { x + 1 }))
298297/// // --> [1, 2, 3, 4, 5]
299298/// ```
300299///
···388387/// <small>Back to top ↑</small>
389388/// </a>
390389/// </div>
390390+@deprecated("use initialise instead.")
391391pub fn range(from start: Int, to stop: Int) -> Array(Int) {
392392 case start <= stop {
393393 True -> initialise(stop - start + 1, fn(x) { x + start })
···481481/// Arrays containing the same elements can have different runtime representations.
482482///
483483/// ```gleam
484484-/// equal(from_list([1, 2, 3]), range(1, 3))
484484+/// equal(from_list([1, 2, 3]), initialise(3, fn(x) { x + 1 }))
485485/// // --> True
486486///
487487/// equal(from_list([1, 2, 3]), from_list([1]))