Celje
Trst
Genova
Peru (Mollendo, Arequipa)
Panama (Panamski prekop)
San Francisco
Havaji
Japonska (Tokio)
Koreja (Seul, Pjongjang)
Kitajska (Peking, Tiencin, Šanghaj)
Formoza/Tajvan
Kitajska (Hongkong, Kanton)
Filipini
Avstralija (Brisbane, Sydney, Melbourne, Adelaide)
Nova Zelandija (Wellington, Auckland, Rotorua, Whangarei)
Otočje Fidži
Otočje Nova Kaledonija
Novi Hebridi
Salomonovo otočje
Nova Gvineja
Indonezija (Java, Sumatra)
Singapur
Tajska
Burma
Indija (Kalkuta, Delhi, Lahore, Karači)
Bab el Mandeb
Eritreja (Somalija)
Sueški prekop
Benetke
Celje (vrnitev)
function(iterator) {
var index = 0;
try {
this._each(function(value) {
iterator(value, index++);
});
} catch (e) {
if (e != $break) throw e;
}
return this;
}
function(number, iterator) {
var index = -number, slices = [], array = this.toArray();
while ((index += number) < array.length)
slices.push(array.slice(index, index+number));
return slices.map(iterator);
}
function(iterator) {
var result = true;
this.each(function(value, index) {
result = result && !!(iterator || Prototype.K)(value, index);
if (!result) throw $break;
});
return result;
}
function(iterator) {
var result = false;
this.each(function(value, index) {
if (result = !!(iterator || Prototype.K)(value, index))
throw $break;
});
return result;
}
function(iterator) {
var results = [];
this.each(function(value, index) {
results.push((iterator || Prototype.K)(value, index));
});
return results;
}
function(iterator) {
var result;
this.each(function(value, index) {
if (iterator(value, index)) {
result = value;
throw $break;
}
});
return result;
}
function(iterator) {
var results = [];
this.each(function(value, index) {
if (iterator(value, index))
results.push(value);
});
return results;
}
function(pattern, iterator) {
var results = [];
this.each(function(value, index) {
var stringValue = value.toString();
if (stringValue.match(pattern))
results.push((iterator || Prototype.K)(value, index));
})
return results;
}
function(object) {
var found = false;
this.each(function(value) {
if (value == object) {
found = true;
throw $break;
}
});
return found;
}
function(number, fillWith) {
fillWith = fillWith === undefined ? null : fillWith;
return this.eachSlice(number, function(slice) {
while(slice.length < number) slice.push(fillWith);
return slice;
});
}
function(memo, iterator) {
this.each(function(value, index) {
memo = iterator(memo, value, index);
});
return memo;
}
function(method) {
var args = $A(arguments).slice(1);
return this.map(function(value) {
return value[method].apply(value, args);
});
}
function(iterator) {
var result;
this.each(function(value, index) {
value = (iterator || Prototype.K)(value, index);
if (result == undefined || value >= result)
result = value;
});
return result;
}
function(iterator) {
var result;
this.each(function(value, index) {
value = (iterator || Prototype.K)(value, index);
if (result == undefined || value < result)
result = value;
});
return result;
}
function(iterator) {
var trues = [], falses = [];
this.each(function(value, index) {
((iterator || Prototype.K)(value, index) ?
trues : falses).push(value);
});
return [trues, falses];
}
function(property) {
var results = [];
this.each(function(value, index) {
results.push(value[property]);
});
return results;
}
function(iterator) {
var results = [];
this.each(function(value, index) {
if (!iterator(value, index))
results.push(value);
});
return results;
}
function(iterator) {
return this.map(function(value, index) {
return {value: value, criteria: iterator(value, index)};
}).sort(function(left, right) {
var a = left.criteria, b = right.criteria;
return a < b ? -1 : a > b ? 1 : 0;
}).pluck('value');
}
function() {
return [].concat(this);
}
function() {
var iterator = Prototype.K, args = $A(arguments);
if (typeof args.last() == 'function')
iterator = args.pop();
var collections = [this].concat(args).map($A);
return this.map(function(value, index) {
return iterator(collections.pluck(index));
});
}
function() {
return this.length;
}
function() {
return '[' + this.map(Object.inspect).join(', ') + ']';
}
function(iterator) {
var results = [];
this.each(function(value, index) {
if (iterator(value, index))
results.push(value);
});
return results;
}
function(object) {
var found = false;
this.each(function(value) {
if (value == object) {
found = true;
throw $break;
}
});
return found;
}
function reverse() { [native code] }
function(iterator) {
for (var i = 0, length = this.length; i < length; i++)
iterator(this[i]);
}
function() {
this.length = 0;
return this;
}
function() {
return this[0];
}
function() {
return this[this.length - 1];
}
function() {
return this.select(function(value) {
return value != null;
});
}
function() {
return this.inject([], function(array, value) {
return array.concat(value && value.constructor == Array ?
value.flatten() : [value]);
});
}
function() {
var values = $A(arguments);
return this.select(function(value) {
return !values.include(value);
});
}
function(sorted) {
return this.inject([], function(array, value, index) {
if (0 == index || (sorted ? array.last() != value : !array.include(value)))
array.push(value);
return array;
});
}
function() {
return [].concat(this);
}
function() {
var results = [];
this.each(function(object) {
var value = Object.toJSON(object);
if (value !== undefined) results.push(value);
});
return '[' + results.join(', ') + ']';
}
function() {
var args = arguments;
this.each(function(f){ f.apply(this, args) });
}