[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: name an array function
From: |
David Pirotte |
Subject: |
Re: name an array function |
Date: |
Wed, 23 Nov 2016 18:48:56 -0200 |
Le Wed, 23 Nov 2016 17:07:30 +0100,
Daniel Llorens <address@hidden> a écrit :
> On 21 Nov 2016, at 14:56, address@hidden wrote:
>
> > I (politely) disagree: the most "commonly" used function is
> > already array-ref, so you would seldomly use array-from/slice
> > for a scalar result (the rank-0 result will be more frequent,
> > because there's no substitute). But hey, as I said.
>
> I don't use array-ref/set! anymore since array-from/amend! generalize them. I
> actually use a further generalization in a separate library :p
>
> But I have a proposal below that makes this discussion moot, I hope.
>
> | master (current) | meaning | proposal
> |
> |---------------------+----------------------------------+----------------------|
> | array-from* | look up subarray, even #0(x) | array-slice
> |
> | array-from | look up cell, so x and not #0(x) | array-cell-ref
> |
> | array-amend! | set cell | array-cell-set!
> |
> | array-for-each-cell | iterate over subarrays |
> array-for-each-slice |
I'd use
array-slice-ref/set!
array-slice-for-each
Unless I miss understood something :)
Cheers,
David
pgpAgFtKQxgcd.pgp
Description: OpenPGP digital signature
- name an array function, Daniel Llorens, 2016/11/21
- Re: name an array function, Stefan Israelsson Tampe, 2016/11/21
- Re: name an array function, tomas, 2016/11/21
- Re: name an array function, Daniel Llorens, 2016/11/21
- Re: name an array function, tomas, 2016/11/21
- Re: name an array function, Daniel Llorens, 2016/11/21
- Re: name an array function, tomas, 2016/11/21
- Re: name an array function, Daniel Llorens, 2016/11/23
- Re: name an array function, tomas, 2016/11/23
- Re: name an array function,
David Pirotte <=
Re: name an array function, Panicz Maciej Godek, 2016/11/21