Sorry for the confusion. What I wanted to ask is: why aren't the extra
parentheses making a difference? Because (0, (1,2,3)) is parsed as
((0),((1,2,3)), right?

I guess that what you explained earlier is also why process =
ba.count(((1,2),(3,4))); results in 3 instead of 2.

Dario

On Fri, 22 May 2020 at 19:31, Oleg Nesterov <[email protected]> wrote:

> On 05/22, Dario Sanfilippo wrote:
> >
> > > But this doesn't really matter. What (I think) does matter is that,
> say,
> > > ((((1,2)))) should match (x,xs), no matter how many parentheses you
> add.
> > >
> >
> > What is the reason why this is not happening?
>
> confused... this _is_ happening, iiuc. And again, IIUC that is why
> "take(2, (0, (1,2,3)))" doesn't return (1,2,3) as you want; after the
> 1st step it leads to take(1, (1,2,3)) and "(1,2,3)" matches "(xs,xxs)").
>
> > As a workaround, could it be possible to rewrite take so that a dummy
> > element is attached at the end of the list? I'll try.
>
> Good luck ;) I don't think this is possible.
>
> Oleg.
>
>
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to