Polski
huginn - programming language with no quirks, so simple every child can master it.
Fork me on GitHub
git clone https://codestation.org/repo/huginn.git
git clone https://github.com/AmokHuginnsson/huginn.git
git clone https://bitbucket.org/huginn/huginn.git
  1. Syntax
  2. Keywords
  3. Types

    Huginn provides several built-in scalar and collection types, as well as user defined compound types.

    integer real string number character boolean list deque dict order lookup set
  4. Built-ins
  5. Core library classes
  6. Packages

The dict is a collection providing a sorted key to value map. It supports operations of iteration, key-value insertion, key removal and key search. The keys stored in given dict instance must be of uniform type.

Methods
  • add( other ) - update content of this dict with key/value pairs from otherdict
  • clear() - erase dict's content, dict becomes empty
  • ensure( key, default ) - get value for given key from this dict, if given key is not present in the dict insert default into this dict before returning it
  • equals( other ) - test if otherdict has the same content
  • erase( key ) - remove given key from this dict
  • get( key, default ) - get value for given key from this dict, or default if given key is not present in the dict
  • has_key( key ) - tell if given key can be found in this dict
  • hash() - calculate hash value for this dict
  • update( other ) - update content of this dict with key/value pairs from otherdict
  • values() - get key-value pairs view of this dict