Today I Learned

Data Types

https://medium.com/@rtheunissen/efficient-data-structures-for-php-7-9dda7af674cd

Language Name Items Mutable Length Duplicates Ordered Other
Python List value (different datatype) Yes Variable Yes Index  
Python Tuple value (different datatype) No Fixed Yes Index slice, concatanate
Python Set value (different datatype) No Variable No No  
Python Dictionary key-value (different datatype) Yes Variable No (unique key) Yes (v3.7)  
Java Array value (similar datatype) Yes Fixed Yes Yes  
Java Vector, ArrayList, LinkedList value (similar datatype) Yes Variable Yes Yes(?)  
Java HashMap key-value (similar datatype) Yes Variable Yes No  
Java HashSet value (similar datatype) Yes Variable No    
Java Treemap key-value (similar datatype) Yes Variable No Yes  
Go Array value (similar datatype) Yes Fixed Yes(?) Yes  
Go Slice value (similar datatype) Yes Variable Yes(?) Yes  
Go Map key-value (similar datatype) Yes Variable No (unique key) No  
Rust Tuple value (different datatype) No Fixed Yes(?) Yes  
Rust Array value (similar datatype) Yes Fixed Yes (?) Yes  
Rust Vector value (similar datatype) Yes Variable Yes(?) Yes  
Rust Hashset key (similar datatype) Yes Variable No Yes  
Rust Hashmap key-value (similar datatype) Yes Variable No(uique key) No(?)  
PHP Array value (different datatype) Yes Yes Yes Yes  
PHP Associative Array key-value (different datatype) Yes Yes No (unique key) Yes  
JS Array value (different datatype) Yes Yes Yes Yes  
JS Set value (different datatype) Yes Yes No Yes  
JS Map key-value (different datatype) Yes Yes No (unique key) Yes .