[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] [#185 append vs concat] (new)
From: |
anonymous |
Subject: |
[Axiom-developer] [#185 append vs concat] (new) |
Date: |
Tue, 28 Jun 2005 05:35:24 -0500 |
Changes http://page.axiom-developer.org/zope/mathaction/185AppendVsConcat/diff
--
The append function in axiom has the lisp background.
axiom and lisp don't duplicate the last list.
L1 := [1,2,3] ; L2 := [10,11,12] ; L := append (L1, L2) ; L2.2 := 100
L.5 -- is 100, not 11
There is also a concat function that I understand in a mathematical way.
today concat works as append.
L1 := [1,2,3] ; L2 := [10,11,12] ; Lc := concat (L1, L2)
Lc doesn't change if I change L1, and Lc change if I modify L2.
Is it possible to change concat in order to copy L2, as
concat (L1, L2) == append (L1, copy (L2))
The concat function becomes just a little slower.
And then list are here a real hi-level n-uple oblject, not a lisp object.
F.Maltey
--
forwarded from http://page.axiom-developer.org/zope/mathaction/address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Axiom-developer] [#185 append vs concat] (new),
anonymous <=