> On 06/06/2011 08:05 PM, Martin Rubey wrote:
> ...
> Do I have to append s1 to a infinite stream by letting the rest
> elements all be 0 manually?
>
> I think that's the way to go. It's not that bad:
>
> [i+j for i in concat(s1, repeating [0]) for j in s2]
>

A more functional notation in the style of the original question would be:

  map(+,concat(s1,repeating [0]),s2)

-- 
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