Re: Python slices in Scheme

2023-06-18 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) Damien, thank you for your work in this! Guile will be s

Re: Python slices in Scheme

2023-06-18 Thread Dr. Arne Babenhauserheide
Damien Mattei writes: > yes it needs SRFI 105 Curly infix to allow full notation. > It defines the optional $bracket-apply$ procedure or macro (here a macro) > as described in SRFI 105. The code is in attachment (not in my github > because there is a lot of work again to have the same powerful a

Re: Python slices in Scheme

2023-06-18 Thread Damien Mattei
Hello Arne, yes it needs SRFI 105 Curly infix to allow full notation. It defines the optional $bracket-apply$ procedure or macro (here a macro) as described in SRFI 105. The code is in attachment (not in my github because there is a lot of work again to have the same powerful and easy affectation

Re: Python slices in Scheme

2023-06-18 Thread Dr. Arne Babenhauserheide
Hi Damien, > {#(1 2 3 4 5 6 7)[2 / 5]} > #(3 4 5) that looks pretty interesting. Is it compatible to curly infix / SRFI-105? Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de signature.asc Description: PGP signature

Python slices in Scheme

2023-06-18 Thread Damien Mattei
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 SRFI 42 Eager Comprehension below are my testin