Browse files

first should just return Nil on failure

Don't throw an exception saying there's no value; that's what Nil means!
  • Loading branch information...
1 parent 465ec29 commit 381e96a2d7edcf745f160644297f4ee924a1a405 @TimToady TimToady committed May 22, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 S32-setting-library/Containers.pod
View
7 S32-setting-library/Containers.pod
@@ -19,8 +19,8 @@ DRAFT: Synopsis 32: Setting Library - Containers.pod
Created: 19 Feb 2009 extracted from S29-functions.pod
- Last Modified: 14 May 2013
- Version: 38
+ Last Modified: 22 May 2013
+ Version: 39
If you read the HTML version, it is generated from the Pod in the specs
repository under
@@ -242,7 +242,8 @@ if you mean the other thing.
multi method first ( @values: Matcher $test --> Parcel )
multi first ( Matcher $test, *@values --> Parcel )
-C<first> searches exactly like C<grep> but returns only the first matching value.
+C<first> searches exactly like C<grep> but returns only the first matching value, or C<Nil>
+if not found.
=item pick

0 comments on commit 381e96a

Please sign in to comment.