guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: name an array function


From: tomas
Subject: Re: name an array function
Date: Thu, 15 Dec 2016 12:30:16 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Dec 15, 2016 at 12:12:58PM +0100, Daniel Llorens wrote:
> 
> On 23 Nov 2016, at 21:48, David Pirotte <address@hidden> wrote:

[...]

> > I'd use 
> > 
> >     array-slice-ref/set!
> >     array-slice-for-each
> > 
> > Unless I miss understood something :)
> > 
> > Cheers,
> > David
> 
> The slice/cell distinction is to be able to use the array as a list of items 
> regardless of whether the items have rank 0 or not.

[...]

Makes sense.

[...]

> So what about this? if there's no comment in a week or so I'll take it as 
> settled.
> 
> | 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-slice-for-each |

My take: beautiful :)

Thanks for all the care you put into interface design!

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlhSfsgACgkQBcgs9XrR2kYWJwCZAU8ZUKogI1zAP783eazROTgB
a6EAn1c/gs9oIaL3OBbfI3av1bZe1En8
=a5lG
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]