On 2009.03.25 06:34:02, you,
the extraordinary Steven Taylor, emitted:
> 3 i. (i. 5) index is useful. I wondered where the convention came from of
> having not found equal the # count of items (since all valid indexes are
> zero to n-1) came from?
I've liked the convention in APL & J because it makes
uses of iota with take and drop go nicely:
H=: i. {. [
T=: i. }. [
S=: 'abcdefgh'
S H 'e'
abcd
S T 'e'
efgh
S H 'z'
abcdefgh
$S T 'z'
0
....N.
--
Nollaig MacKenzie
http://www.amhuinnsuidhe.net
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm