No such thing as a small change | |
PerlMonks |
Re^5: [OT] Python vs R (linked list vs array )by LanX (Saint) |
on May 31, 2017 at 23:52 UTC ( [id://1191767]=note: print w/replies, xml ) | Need Help?? |
> > Python also has a powerful implementation of LISP-style lists Of course this is BS Python "lists" are exactly like Perl "arrays" , ie an implementation as a vector of pointers. ° But Lisp lists are linked lists, like emulated in Higher Order Perl. I.e. every element has additional to a value a pointer (link) to its successor element. This makes referencing a higher index very expensive because you have to traverse the whole list, but has other advantages (splitting is trivial). So these "lists" are fundamentally different data structures only sharing similar names!
But ...... I wonder why you guys spend time arguing against the PerlTrump who combines kindergarten knowledge with a ridiculously huge ego ? ? ? Just compose one "hall of shame" thread listing and linking his worst 20- 100 nonsense statements and keep referencing it in your replies. The regulars know him already and the newbees will quickly grasp his abysmal wisdom from this master thread. Why wasting energy? See also:
Cheers Rolf
°) Python (well numpy) has indeed an "array" class as a wrapper around C arrays only allowing elements of same type and size, something we could emulate with pack and substr
In Section
Seekers of Perl Wisdom
|
|