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 Algorithms package contains basic low-level algorithms.

Methods
  • AlgorithmsException( message ) - create instance of AlgorithmsException with given message
  • enumerate( iterable[, start] ) - create Enumerator object that counts elements from iterable when iterated over
  • filter( iterable, callable ) - create Filter object that iterates over iterable and returns only elements for which callable returns boolean equal true
  • map( iterable, callable ) - create Mapper object that maps elements from iterable transforming each of them with callable when iterated over
  • materialize( iterable, colType ) - copy elements from iterable to newly created instance of colType
  • max( arg1, arg2[, argN...] ) - find maximum element from given set
  • min( arg1, arg2[, argN...] ) - find minimum element from given set
  • range( [from,] until [, step] ) - produce iterable sequence of integer values ranging from from up until until using step increments
  • reduce( iterable, callable [, init] ) - iteratively combine all elements from iterable using callable(x,y) and starting value of init
  • reversed( coll ) - create reversed iterable view of a coll materialized collection
  • sorted( iterable [, callable] ) - return content of iterable as sorted list, using callable to retrieve keys for element comparison

The AlgorithmsException exception type for Algorithms package.

The Range class represents lazyiterable range of integer values.

The Mapper class represent lazy transformation of one iterable into another. Resulting iterable produces values from original iterable transformed by user supplied unary function.

The Filter class represents a lazy filtering transformation of one iterable into another. Resulting iterable produces only values matching supplied predicate.