Skip to content

Commit d6fc390

Browse files
committed
Typo in aggregate example
1 parent fdf1397 commit d6fc390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/03-developersguide.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ Note that in general, since the type of the aggregate expression is not known un
16051605
----
16061606
define FactorialOfFive:
16071607
({ 1, 2, 3, 4, 5 }) Num
1608-
aggregate Result: Coalesce(Result, 1) * Result
1608+
aggregate Result: Coalesce(Result, 1) * Num
16091609
----
16101610

16111611
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.

0 commit comments

Comments
 (0)