Skip to content

Commit

Permalink
Typo in aggregate example
Browse files Browse the repository at this point in the history
  • Loading branch information
brynrhodes committed Jan 20, 2021
1 parent fdf1397 commit d6fc390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/03-developersguide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ Note that in general, since the type of the aggregate expression is not known un
----
define FactorialOfFive:
({ 1, 2, 3, 4, 5 }) Num
aggregate Result: Coalesce(Result, 1) * Result
aggregate Result: Coalesce(Result, 1) * Num
----

In this example, since the starting clause is omitted, Result is initially [.kw]#null#, and Coalesce must be used to provide the default value of 1, and the type of Integer will be inferred through the Coalesce. Note that although this example only computes the factorial of five, the expand operator could be used to generate a sequence of integers and used to construct a general factorial function.
Expand Down

0 comments on commit d6fc390

Please sign in to comment.