Re: Python slices in Scheme

2023-06-23 Thread Damien Mattei
seems a great work on array Lloda , for Guile , i can not use it directly in Scheme+ because i search portable code compatible with Racket too (and any scheme that support SRFI 105 curly infix), but perhaps there is not a lot of work to port it , indeed your library seems very powerful ,make me thi

Re: Python slices in Scheme

2023-06-23 Thread Jay Sulzberger
On Mon, 19 Jun 2023, lloda wrote: My library guile-newra (1) has quite general multidimensional array slicing. The indices < can be linear ranges or arbitrary integer arrays and they can have any rank. You can also use the indexed array as write target. If all the indices are linear ranges th

Re: Python slices in Scheme

2023-06-23 Thread Jay Sulzberger
On Sun, 18 Jun 2023, Damien Mattei wrote: hello, i'm porting the Python slicing ( https://docs.python.org/2/reference/expressions.html#slicings ) to Scheme Guile and Racket. examples in Scheme+ : {#(1 2 3 4 5 6 7)[2 / 5]} #(3 4 5) i'm using / instead of : because : is already used by the

Re: Equality and hashing for new datatypes

2023-06-23 Thread Robby Zambito
Taylan Kammer writes: > On 23.06.2023 00:45, Philip McGrath wrote: >> >> Thanks, but this is the opposite of what I want to do. The library I'm >> porting >> already supports creating tables with custom equality and hashing functions. >> What I'm trying to do is make the standard `equal?` p

Re: Equality and hashing for new datatypes

2023-06-23 Thread Taylan Kammer
On 23.06.2023 00:45, Philip McGrath wrote: > On Thursday, June 22, 2023 7:33:06 AM EDT Taylan Kammer wrote: >> On 22.06.2023 00:25, Philip McGrath wrote: >>> Hi, >>> >>> What is the recommended way for a library to customize `equal?` and >>> `equal?` -based hashing for new datatypes it defines? >>>