![]() |
Programming workaround for "prepend" HP PRIME - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Programming workaround for "prepend" HP PRIME (/thread-257244.html) |
Programming workaround for "prepend" HP PRIME - Marek Russ - 11-28-2013 Hi I have this issue:
L1:={"A","B"};
append (L1,1) //works fine
known workaround in program is
but if I need insert "C" to the beginning of my list,
I need that output is exactly: Edited: 28 Nov 2013, 5:26 a.m. after one or more responses were posted
Re: Programming workaround for "prepend" - Marek Russ - 11-28-2013 short after posting, i found this solution:
REVERSE(L1);
but maybe exists better solution...
Re: Programming workaround for "prepend" - Patrice - 11-28-2013 Try CONCAT
CONCAT({"a","b"},{"c"}) => {"a","b","c"} Re: Programming workaround for "prepend" HP PRIME - cyrille de Brébisson - 11-29-2013 hello,
as much as possible, try to stay in 1 system.
L1(0):= "C" in this cas.
cyrille
Re: Programming workaround for "prepend" HP PRIME - Marek Russ - 11-29-2013 Thanks for explanation. |