-login:
user: password:
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
  • iterator( iterable ) - create manual iterator object for given iterable
  • 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
  • zip( iterable1, iterable2, ... ) - create zipped iterable view of a set of iterables

The AlgorithmsException exception type for Algorithms package.

The Iterator class provides forward iterator view over an iterable.

Methods
  • is_valid() - check if this Iterator is in valid (dereferencable) state
  • next() - move this Iterator to next position
  • value() - get value pointed by this Iterator

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.

The Enumerator class allows counting elements of iterable that are iterated over.

The Zip class represents a lazy zipping of set of iterables into another. Resulting iterable produces number of tuples equal to minimum length of source iterables.