>>> sage: data = [-1, 2, 3] >>> sage: [(0 if d < 0 else d) for d in data]
> sage: data = ma_eval('data /. x_?(# < 0 &) -> 0') Couldn't stop myself from showing how that would work in Maple, data:=[-1,2,3]: evalindets(data,negative,0); [0, 2, 3] Alec --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---