kopia lustrzana https://github.com/backface/turtlestitch
turned split() into a hyper-op
rodzic
18e8131711
commit
e10fc51ed9
|
|
@ -3756,6 +3756,23 @@ Process.prototype.reportUnicodeAsLetter = function (num) {
|
|||
};
|
||||
|
||||
Process.prototype.reportTextSplit = function (string, delimiter) {
|
||||
if (this.enableHOO) {
|
||||
if (string instanceof List) {
|
||||
return new List(
|
||||
string.asArray().map(
|
||||
each => this.reportTextSplit(each, delimiter)
|
||||
)
|
||||
);
|
||||
}
|
||||
if (delimiter instanceof List) {
|
||||
return new List(
|
||||
delimiter.asArray().map(
|
||||
each => this.reportTextSplit(string, each)
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
var types = ['text', 'number'],
|
||||
strType = this.reportTypeOf(string),
|
||||
delType = this.reportTypeOf(this.inputOption(delimiter)),
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue