|
|
(6 intermediate revisions by the same user not shown) |
Line 6: |
Line 6: |
| *Digits is any of the numerals from 0 to 9, especially when forming part of a number. | | *Digits is any of the numerals from 0 to 9, especially when forming part of a number. |
| | | |
− | ==Inner==
| |
− | *1..100.inner(2) displaying skip first 2 numbers and give inner elements.
| |
− | *1..100.inner(2)=3 4 5 6 7 8 9 10 11 ..98.
| |
− |
| |
− | ==Outer==
| |
− | *1..100.outer() displays outer 2 elements.
| |
− | *1..100.outer() = 1 100
| |
− | *1..100.outer(2) gives outer including some (2 here) elements.
| |
− | *1..100.outer(2) = 1 2 99 100
| |
− |
| |
− | ==Slices==
| |
− | *1..100.allslices() gives slices of numbers of length 1 to end.
| |
− | *1..10.allslices(true) gives reverse slices of length 1 to end.
| |
− | *1..10.allslices(true)
| |
− | {| id="TABLE3" class="SpreadSheet blue"
| |
− | |- class="even"
| |
− | | class=" " |
| |
− | | class="sshl_f" | 10
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− | | class="sshl_f" | 7
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− | | class="sshl_f" | 7
| |
− | | class="sshl_f" | 6
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− | | class="sshl_f" | 7
| |
− | | class="sshl_f" | 6
| |
− | | class="sshl_f" | 5
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− | | class="sshl_f" | 7
| |
− | | class="sshl_f" | 6
| |
− | | class="sshl_f" | 5
| |
− | | class="sshl_f" | 4
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− | | class="sshl_f" | 7
| |
− | | class="sshl_f" | 6
| |
− | | class="sshl_f" | 5
| |
− | | class="sshl_f" | 4
| |
− | | class="sshl_f" | 3
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− | | class="sshl_f" | 7
| |
− | | class="sshl_f" | 6
| |
− | | class="sshl_f" | 5
| |
− | | class="sshl_f" | 4
| |
− | | class="sshl_f" | 3
| |
− | | class="sshl_f" | 2
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | 10
| |
− | | class="sshl_f" | 9
| |
− | | class="sshl_f" | 8
| |
− | | class="sshl_f" | 7
| |
− | | class="sshl_f" | 6
| |
− | | class="sshl_f" | 5
| |
− | | class="sshl_f" | 4
| |
− | | class="sshl_f" | 3
| |
− | | class="sshl_f" | 2
| |
− | | class="sshl_f" | 1
| |
− | |}
| |
− |
| |
− | ==Buckets==
| |
− | *1..10.buckets() returns an object with key frequency pairs.
| |
− | *{|id="TABLE3" class="SpreadSheet blue"
| |
− | |- class="even"
| |
− | | class=" " |
| |
− | | class="sshl_f" | "1": 1,
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | "2": 1,
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | "3": 1,
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | "4": 1,
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | "5": 1,
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | "6": 1,
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | "7": 1,
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | "8": 1,
| |
− |
| |
− | |- class="even"
| |
− | | class="sshl_f" | "9": 1,
| |
− |
| |
− | |- class="odd"
| |
− | | class="sshl_f" | "10": 1,
| |
− |
| |
− | |}
| |
− | |}
| |
| | | |
| ==Example== | | ==Example== |
| #DIGITS() = 1234567890 | | #DIGITS() = 1234567890 |
− |
| |
| #DIGITS(38) = ["3","8"] | | #DIGITS(38) = ["3","8"] |
− |
| |
| #DIGITS(1..100)=1 2 3 4 5 6 7 8 9 10...........100 | | #DIGITS(1..100)=1 2 3 4 5 6 7 8 9 10...........100 |
| | | |