This works as designed: you should use return value of 'remove!'.
Post by Kurt Pagani(4) -> remove!(3,L)
(4) [1, 2]
List(PositiveInteger)
(5) -> L
(5) [1, 2]
List(PositiveInteger)
(6) -> remove!(2,L)
(6) [1]
List(PositiveInteger)
(7) -> L
(7) [1]
List(PositiveInteger)
(8) -> remove!(1,L)
(8) []
List(PositiveInteger)
(9) -> L
(9) [1]
List(PositiveInteger)
(10) ->
--
You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group.
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.
------=_Part_12032_454238002.1529676362984
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: base64
PGRpdiBkaXI9Imx0ciI+PGZvbnQgc2l6ZT0iMSI+PHNwYW4gc3R5bGU9ImZvbnQtZmFtaWx5OiBj
b3VyaWVyIG5ldyxtb25vc3BhY2U7Ij5JIGd1ZXNzIHRoaXMgaXMgbm90IGNvcnJlY3QgIT88YnI+
PGJyPsKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoMKgIFR5cGU6IFZvaWQ8YnI+PGJyPigxKSAtJmd0OyBMOj1bMSwyLDNdPGJyPjxicj7CoMKg
ICgxKcKgIFsxLCAyLCAzXTxicj7CoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC
oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg
wqDCoCBUeXBlOiBMaXN0KFBvc2l0aXZlSW50ZWdlcik8YnI+KDIpIC0mZ3Q7IHJlbW92ZSEoMSxM
KTxicj48YnI+wqDCoCAoMinCoCBbMiwgM108YnI+wqDCoMKgwqDCoMKgwqDCoMKg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