oldk1331 wrote: > > >> > >> Replace '"append"/' with 'concat' > >> > >> https://github.com/oldk1331/fricas/commit/f4909fd49add27b006db4e11476e9071a58ab680.patch > > > > Why? > > > >> Use 'gcd/lcm' instead of 'reduce' > >> > >> https://github.com/oldk1331/fricas/commit/39b4c422e77d0d8e75ba87c310f60758e298a9b6.patch > > > > Again why? > > > > -- > > Waldek Hebisch > > > > The grammar for 'reduce': "func"/[args] > is not only very strange, but also not applicable in interpreter. > > I don't think it's worth the effort that compiler supports this grammar, > because it should be easilly replaced by "reduce(func, args)", > so I want to remove this grammar eventually.
ATM "func"/[args] notation has one big advantage: it does not create an intermediate list. So it is more efficient than 'reduce(func, args)' variant. Supporting it in compiler in a sense is almost trivial: most of code is present anyway to support '[i for i in l]' construct. Supporting "func"/[args] in interpreter is harder because interpreter parser is much more messy than Spad parser. But the future plan is to replace interpreter parser by Spad parser... -- Waldek Hebisch -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving emails from it, send an email to fricas-devel+unsubscr...@googlegroups.com. To post to this group, send email to fricas-devel@googlegroups.com. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.