Changeset 15084 for docs/Perl6/Spec

Show
Ignore:
Timestamp:
01/16/07 19:59:13 (23 months ago)
Author:
lwall
Message:

Added first function.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • docs/Perl6/Spec/Functions.pod

    r14910 r15084  
    1313                Mark Stosberg <mark@summersault.com> 
    1414 Date:          12 Mar 2005 
    15  Last Modified: 23 Sep 2006 
    16  Version:       9 
     15 Last Modified: 16 Jan 2007 
     16 Version:       10 
    1717 
    1818This document attempts to document the list of builtin functions in Perl 6. 
     
    700700Note that, unlike in Perl 5, a comma is required after the C<Matcher> 
    701701in the multi form. 
     702 
     703=item first 
     704 
     705 our Item multi method first ( @values: Matcher $test ) 
     706 our Item multi first ( Matcher $test, *@values ) 
     707 
     708C<first> works exactly like C<grep> but returns only the first matching value. 
    702709 
    703710=item pick