axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Axiom-developer] Currying and iteration


From: Page, Bill
Subject: RE: [Axiom-developer] Currying and iteration
Date: Tue, 28 Mar 2006 02:20:32 -0500

On Tuesday, March 28, 2006 12:36 AM Gaby wrote:

> ...
> Bill Page writes:
> | What is a "sequence"?
> 
> Sequence is my general term for list, vector or any "thingy"
> walked through by a generator.
> 

Well, Aldor does have generators:

http://www.aldor.org/docs/HTML/chap9.html

  "In fact, this form of using generators is so common, that
  if the expression E in ``for v in E.'' does not belong to a
  generator type, then an implicit call is made to an appropriate
  generator function. This is equivalent to writing
  ``for v in generator E.'' "

The Aldor/Axiom interface provides such a generator for the
Axiom Vector type so in Aldor one can write:
 
  V:Vector Integer := [1,2,3];
  L:List Integer := [ i for i in V ];

Here is a simple example:

http://wiki.axiom-developer.org/SandBoxAldorGenerator

Regards,
Bill Page.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]