On 11/13, Oleg Nesterov wrote:
>
> Not sure if this is a bug or not, add Stephane and Yann.
>
> On 11/13, Till Bovermann wrote:
> >
> > // drop the first i elements
> > left_drop(0, (x, xs)) = x, xs;
> > left_drop(i, (x, xs)) = left_drop(i-1, xs);
> >
> > // reverse a list
> > reverse((x, xs)) = reverse(xs), x;
> > reverse(x) = x;
> >
> > process = left_drop(3, reverse((1, 2, 3, 4, 5)));
> > // >> ERROR : pattern matching failed, no rule of case {(<x>,<xs>,<i>) => 
> > left_drop(xs,i,1 : -); (<x>,<xs>,0) => x,xs; } matches argument list (2,1)

just in case... you can probably do something like

        left_drop(i, xs) = xs : si.block(i), si.bus(outputs(xs)-i);

        reverse(xs) = ro.cross(outputs(xs), xs);

        process = (left_drop(3, reverse((1, 2, 3, 4, 5))));

instead.

Oleg.



_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to