On 11/24/2013 06:40 PM, Lars Andersson wrote: > thanks for your fine work! Really enjoy this.
You are welcome. I also enjoy creating the program :-) > I'm wondering about a small detail; how do I convert a vectorlist with > one element as returned from tail(vectorlist, 1) into a vector as > expected by move(vector)? To return the last vector in a list you can simply use: lastvector = vectorlist[-1]; or as a one-liner for the move you describe: move(vectorlist[-1]); The negative index was introduced with 1.4.0 to make it easier to get entries from the back. Pre 1.4.0 you had to write: lastvector = vectorlist[count(vectorlist)-1]; -- Greetings Bertho (disclaimers are disclaimed) ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
