sort/skip
[1/2] from: kpeters::vu-ware::com at: 7-Oct-2005 10:58
Hi all ~
what is wrong below/happened to sort?
Thanks,
Kai
>> blk: make block! 300000
== []
>> repeat i 100000 [insert tail blk reduce [i 1-Jan-2004 to-integer i / 100
join "Note-" i]]
== []
>> blk
== [1 1-Jan-2004 0 "Note-1" 2 1-Jan-2004 0 "Note-2" 3 1-Jan-2004 0 "Note-3" 4
1-Jan-2004 0 "Note-4" 5 1-Jan-200
4 0 "Note-5" 6 1-Jan...
>> sort/all/skip blk
** Script Error: sort expected size argument of type: integer
** Where: halt-view
** Near: sort/all/skip blk
>> sort/all/skip blk 3
** Script Error: Invalid argument: 3
** Where: halt-view
** Near: sort/all/skip blk 3
[2/2] from: gabriele::colellachiara::com at: 7-Oct-2005 20:03
Hi Kai,
On Friday, October 7, 2005, 7:58:46 PM, you wrote:
KP> what is wrong below/happened to sort?
>> a: [1 2 3 4]
== [1 2 3 4]
>> sort/skip a 3
** Script Error: Invalid argument: 3
** Near: sort/skip a 3
>> sort/skip a 4
== [1 2 3 4]
The length of the block must be a multiple of the skip argument.
Regards,
Gabriele.
--
Gabriele Santilli <[gabriele--rebol--com]> --- http://www.rebol.com/
Colella Chiara software division --- http://www.colellachiara.com/