Some problems with Append and Element commands

mrahikka shared this problem 2 months ago
Solved

I have a list

L := {-5, -2, 1, 4}

If I Append to the end, it works OK, but not in the beginning.

Append(L, 0)

{(-5), (-2), 1, 4, 0}

Append(0, L)

-> ?

Append({8}, L)

->{8, {(-5), (-2), 1, 4}}

#######

Length(L)

-> 4

Element(L, Lenght(L))

Sorry something went wrong. Please ...

I know I could use Last, But it outputs a list, not the last element.

M

Comments (3)

photo
1

Just noticed that this happens in GG5 &GG6 desktop versions. Seems to work OK in Graphing Calculator App and Classic 6 web version. The problem is in CAS-versions.


M

photo
1

I wrote lenght also not length


confirmed in GeoGebra Classic 5.0.502.0-d (30 September 2018) CAS

photo
1

Thanks, fixed for next release (v503)

© 2018 International GeoGebra Institute