renamed <set>.replaceIndex(..) to <set>.replaceAt(..)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2021-06-08 19:21:20 +03:00
parent 4f41f81f70
commit 58483dce17
3 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ Library of JavaScript type extensions, types and utilities.
- [`<map>.sort(..)`](#mapsort)
- [`Set`](#set)
- [`<set>.replace(..)`](#setreplace)
- [`<set>.replaceIndex(..)`](#setreplaceindex)
- [`<set>.replaceAt(..)`](#setreplaceat)
- [`<set>.unite(..)`](#setunite)
- [`<set>.intersect(..)`](#setintersect)
- [`<set>.subtract(..)`](#setsubtract)
@ -926,7 +926,7 @@ Note that when sorting large sets this can get expensive.
### `<set>.replaceIndex(..)`
### `<set>.replaceAt(..)`
Replace item at position in set retaining order
```bnf

2
Set.js
View File

@ -60,7 +60,7 @@ object.Mixin('SetMixin', 'soft', {
ordered
&& this.sort(order)
return this },
replaceIndex: function(index, value, ordered=true){
replaceAt: function(index, value, ordered=true){
// nothing to do...
if(this.size < index || old === value){
return this }

View File

@ -1,6 +1,6 @@
{
"name": "ig-types",
"version": "6.7.0",
"version": "6.8.0",
"description": "Generic JavaScript types and type extensions...",
"main": "main.js",
"scripts": {