minor fixes in documentation

This commit is contained in:
rlx 2012-03-29 10:11:45 +00:00
parent c1ec0814dd
commit ab2e5ecda0

View file

@ -1,7 +1,7 @@
'use strict';
/*@
Ox.compact <f> Returns an array w/o <code>undefined</code> values
Ox.compact <f> Removes <code>null</code> or <code>undefined</code> values
> Ox.compact([null,,1,,2,,3])
[1, 2, 3]
@*/
@ -33,6 +33,7 @@ Ox.flatten = function(arr) {
/*@
Ox.merge <f> Merges an array with one or more other arrays
For convenience, literals are treated as arrays with one element
> Ox.merge([1], [2, 3, 2], [1])
[1, 2, 3, 2, 1]
> Ox.merge(1, [2, 3, 2], 1)
@ -58,7 +59,7 @@ Ox.range <f> Python-style range
<code>stop</code> (exclusive).
(start, stop, step) -> <[n]> range
Returns an array of numbers from <code>start</code> (inclusive) to
<code>stop</code> (exclusive), incrementing by <code>step</step>.
<code>stop</code> (exclusive), incrementing by <code>step</code>.
start <n> Start value
stop <n> Stop value
step <n> Step value