> > >> cumSum(l: List Integer): List Integer == (s:=0;[(s:=s+i) for i in
> > >> l])
> 
> BTW: Why can I not use this for List PI?
> 
>    >> Apparent user error:
>    Cannot coerce lc 
>       of mode (List (PositiveInteger)) 
>       to mode (List (Integer))
> 
> The other way round would make sense for me.
> But PI is a subset (and subtype) of INT ...
> What am I missing again? These errors are not
> so apparent for me ;-)

Oh, maybe its semi-apparent now, there is of course
a zero in the code. But still, it should accept List PI
and return List INT at least, no?

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en.

Reply via email to