fix(camelCase)
This commit is contained in:
@ -78,7 +78,7 @@ export class List {
|
||||
List.from = function (obj) {
|
||||
const list = new List()
|
||||
for (const value of obj) {
|
||||
list.push_back(value)
|
||||
list.pushBack(value)
|
||||
}
|
||||
return list
|
||||
}
|
||||
|
||||
@ -103,19 +103,19 @@ export class SequenceContainer {
|
||||
this.erase(this.begin(), this.end())
|
||||
}
|
||||
|
||||
push_front(value) {
|
||||
pushFront(value) {
|
||||
this.insert(this.begin(), value)
|
||||
}
|
||||
|
||||
push_back(value) {
|
||||
pushBack(value) {
|
||||
this.insert(this.end(), value)
|
||||
}
|
||||
|
||||
pop_front() {
|
||||
popFront() {
|
||||
this.erase(this.begin())
|
||||
}
|
||||
|
||||
pop_back() {
|
||||
popBack() {
|
||||
this.erase(this.end().dec())
|
||||
}
|
||||
|
||||
@ -166,10 +166,10 @@ SequenceContainer.is = function (obj, ...args) {
|
||||
'assign',
|
||||
'erase',
|
||||
'clear',
|
||||
'push_front',
|
||||
'push_back',
|
||||
'pop_front',
|
||||
'pop_back',
|
||||
'pushFront',
|
||||
'pushBack',
|
||||
'popFront',
|
||||
'popBack',
|
||||
Symbol.iterator,
|
||||
'toJSON',
|
||||
'toString',
|
||||
|
||||
Reference in New Issue
Block a user