FileDocCategorySizeDatePackage
Applying1.javaAPI DocExample834Sat Sep 12 03:01:00 BST 1998None

Applying1

public class Applying1 extends Object
Applying a unary function to every element of a sequence.
see
com.objectspace.jgl.algorithms.Applying
version
3.0.0
author
ObjectSpace, Inc.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

    Array array = new Array();
    array.add( "cat" );
    array.add( "dog" );
    array.add( "emu" );
    System.out.println( "array = " + array );

    System.out.println( "Print each element to standard output" );
    Applying.forEach( array.begin(), array.end(), new Print() );

    System.out.println( "Print each element to standard output" );
    Applying.forEach( array, new Print() );