I think the specification for concat! is wrong then: it should said, for non-empty u, concat!(u, v) = setlast!(u, v).
concat! makes sense for empty u: why not? setlast! should mention that if u is empty, error will occur. > Anyway, "destructive" in FriCAS means that (some) argument may be > modified, but there is not "will be modified" I think that only holds true for List. For data structures other than List, because of their Rep are Reference List or Record/Union, they *will be* destructively modified. Because Spad can't set an empty list to others thing, but if there's wrapper over empty list, you can then. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/fricas-devel. For more options, visit https://groups.google.com/d/optout.
