8000 Deploy 91585d2db3230cd8cdc96365731897afe1cb54d2 to NPM branch · datianyun/immutable-js@f918a5f · GitHub
[go: up one dir, main page]

Skip to content

Commit f918a5f

Browse files
author
Travis CI
committed
Deploy 91585d2 to NPM branch
1 parent 93de687 commit f918a5f

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

dist/immutable-nonambient.d.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@
522522
* // List [ 1, 2, 3, 4 ]
523523
* ```
524524
*
525+
* Since `delete()` re-indexes values, it produces a complete copy, which
526+
* has `O(N)` complexity.
527+
*
525528
* Note: `delete` *cannot* be used in `withMutations`.
526529
*
527530
* @alias remove
@@ -543,12 +546,15 @@
543546
* // List [ 0, 1, 2, 3, 4, 5 ]
544547
* ```
545548
*
549+
* Since `insert()` re-indexes values, it produces a complete copy, which
550+
* has `O(N)` complexity.
551+
*
546552
* Note: `insert` *cannot* be used in `withMutations`.
547553
*/
548554
insert(index: number, value: T): List<T>;
549555

550556
/**
551-
* Returns a new List with 0 size and no values.
557+
* Returns a new List with 0 size and no values in constant time.
552558
*
553559
* <!-- runkit:activate
554560
* { "preamble": "const { List } = require('immutable@4.0.0-rc.7');" }
@@ -3638,6 +3644,11 @@
36383644
* )
36393645
* // List [ 1, "A", "X", 2, "B", "Y"" ]
36403646
* ```
3647+
*
3648+
* Since `interleave()` re-indexes values, it produces a complete copy,
3649+
* which has `O(N)` complexity.
3650+
*
3651+
* Note: `interleave` *cannot* be used in `withMutations`.
36413652
*/
36423653
interleave(...collections: Array<Collection<any, T>>): this;
36433654

@@ -3655,6 +3666,11 @@
36553666
* List([ 'a', 'b', 'c', 'd' ]).splice(1, 2, 'q', 'r', 's')
36563667
* // List [ "a", "q", "r", "s", "d" ]
36573668
* ```
3669+
*
3670+
* Since `splice()` re-indexes values, it produces a complete copy, which
3671+
* has `O(N)` complexity.
3672+
*
3673+
* Note: `splice` *cannot* be used in `withMutations`.
36583674
*/
36593675
splice(
36603676
index: number,

dist/immutable.d.ts

Lines changed: 17 additions & 1 deletion
10000
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,9 @@ declare module Immutable {
522522
* // List [ 1, 2, 3, 4 ]
523523
* ```
524524
*
525+
* Since `delete()` re-indexes values, it produces a complete copy, which
526+
* has `O(N)` complexity.
527+
*
525528
* Note: `delete` *cannot* be used in `withMutations`.
526529
*
527530
* @alias remove
@@ -543,12 +546,15 @@ declare module Immutable {
543546
* // List [ 0, 1, 2, 3, 4, 5 ]
544547
* ```
545548
*
549+
* Since `insert()` re-indexes values, it produces a complete copy, which
550+
* has `O(N)` complexity.
551+
*
546552
* Note: `insert` *cannot* be used in `withMutations`.
547553
*/
548554
insert(index: number, value: T): List<T>;
549555

550556
/**
551-
* Returns a new List with 0 size and no values.
557+
* Returns a new List with 0 size and no values in constant time.
552558
*
553559
* <!-- runkit:activate
554560
* { "preamble": "const { List } = require('immutable@4.0.0-rc.7');" }
@@ -3638,6 +3644,11 @@ declare module Immutable {
36383644
* )
36393645
* // List [ 1, "A", "X", 2, "B", "Y"" ]
36403646
* ```
3647+
*
3648+
* Since `interleave()` re-indexes values, it produces a complete copy,
3649+
* which has `O(N)` complexity.
3650+
*
3651+
* Note: `interleave` *cannot* be used in `withMutations`.
36413652
*/
36423653
interleave(...collections: Array<Collection<any, T>>): this;
36433654

@@ -3655,6 +3666,11 @@ declare module Immutable {
36553666
* List([ 'a', 'b', 'c', 'd' ]).splice(1, 2, 'q', 'r', 's')
36563667
* // List [ "a", "q", "r", "s", "d" ]
36573668
* ```
3669+
*
3670+
* Since `splice()` re-indexes values, it produces a complete copy, which
3671+
* has `O(N)` complexity.
3672+
*
3673+
* Note: `splice` *cannot* be used in `withMutations`.
36583674
*/
36593675
splice(
36603676
index: number,

0 commit comments

Comments
 (0)
0