A better data structure for lists in Skill

Guest
Anyone who worked in both Python and Skill would agree that some of the operations on Lists which are done in a line in Python would take several lines of complex code in Skill.

I am wondering if we can create a data-structure in Skill that mimics Python's list and supports all operations and uses some combination of native list and array to actually store the data, may be in a slightly inefficient way.

Anyone have any thoughts or pointers to any work already done on this... Thanks.

-
Suresh Jeevanandam
 
Use vectors.
Try:
help makeVector
jm.suresh@gmail.com @ 2017-02-02 21:30:58:
Anyone who worked in both Python and Skill would agree that some of the operations on Lists which are done in a line in Python would take several lines of complex code in Skill.

I am wondering if we can create a data-structure in Skill that mimics Python's list and supports all operations and uses some combination of native list and array to actually store the data, may be in a slightly inefficient way.

Anyone have any thoughts or pointers to any work already done on this... Thanks.

-
Suresh Jeevanandam
 
On Tuesday, 7 February 2017 17:40:30 UTC+5:30, SimĂŁo Afonso wrote:
Use vectors.
Try:
help makeVector
@ 2017-02-02 21:30:58:
Anyone who worked in both Python and Skill would agree that some of the operations on Lists which are done in a line in Python would take several lines of complex code in Skill.

I am wondering if we can create a data-structure in Skill that mimics Python's list and supports all operations and uses some combination of native list and array to actually store the data, may be in a slightly inefficient way.

Anyone have any thoughts or pointers to any work already done on this.... Thanks.

-
Suresh Jeevanandam

Vector/Array size is fixed. We can not add elements dynamically.

-
Suresh
 

Welcome to EDABoard.com

Sponsor

Back
Top