< AnyLang Programming Language Comparison < Introduction 
 
        
      Core concepts
- declaration
- assignment
- assignment by reference
- assignment by value
 
- typing (type system)
- type conversion (explicit)
- type conversion (implicit)
 
Common types
String
  - label:   string
    a_abbrv: anylang/string (ss)
    a_aka:   string varchar
Array
  - label:   array
    a_abbrv: anylang/array (aa)
    a_aka:   list simple_sequence
Core concepts
- core_arrayop.append ;; (aka array push) insert a single-element at the highest index. array treated as a single nested element
- core_arrayop.prepend ;; (aka array unshift) insert element at the lowest index
- core_arrayop.unappend ;; (aka array pop) remove and return element at the highest index
- core_arrayop.unprepend ;; (aka array shift) remove and return element at the lowest index
Associative array
An associative array is a mapping of keys to values. This is also known as a Hash, Hashtable and Dictionary. [1][2]
References
- ↑ "Associative_array". http://en.wikipedia.org/wiki/Associative_array. Retrieved 2010-05-01. http://en.wikipedia.org/wiki/Associative_array
- ↑ From "Dive into Python" Note A dictionary in Python is like a hash in Perl. In Perl, variables which store hashes always start with a % character; in Python, variables can be named anything, and Python keeps track of the datatype internally. Note A dictionary in Python is like an instance of the Hashtable class in Java. Note A dictionary in Python is like an instance of the Scripting.Dictionary object in Visual Basic.
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.