Skip to content

Commit

Permalink
add very basic args check to [apply]
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Apr 13, 2010
1 parent 00d24f3 commit 3fa5cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Partcl/commands/main.pm
Expand Up @@ -22,6 +22,9 @@ our sub append(*@args) {
}

our sub apply(*@args) {
if +@args == 0 {
error('wrong # args: should be "apply lambdaExpr ?arg1 arg2 ...?"');
}
return '';
}

Expand Down

0 comments on commit 3fa5cd7

Please sign in to comment.