EDAboard.com | EDAboard.de | EDAboard.co.uk | WTWH Media

A better data structure for lists in Skill

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - Cadence - A better data structure for lists in Skill


Guest

Fri Feb 03, 2017 7:30 am   



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

Simão Afonso
Guest

Tue Feb 07, 2017 7:10 pm   



Use vectors.
Try:
help makeVector
jm.suresh_at_gmail.com @ 2017-02-02 21:30:58:
Quote:
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



Guest

Thu Feb 16, 2017 1:31 pm   



On Tuesday, 7 February 2017 17:40:30 UTC+5:30, Simão Afonso wrote:
Quote:
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

elektroda.net NewsGroups Forum Index - Cadence - A better data structure for lists in Skill

Ask a question - edaboard.com

Arabic version Bulgarian version Catalan version Czech version Danish version German version Greek version English version Spanish version Finnish version French version Hindi version Croatian version Indonesian version Italian version Hebrew version Japanese version Korean version Lithuanian version Latvian version Dutch version Norwegian version Polish version Portuguese version Romanian version Russian version Slovak version Slovenian version Serbian version Swedish version Tagalog version Ukrainian version Vietnamese version Chinese version Turkish version
EDAboard.com map