From 98ee8e929c7e4015fab483a7eb112a94e777ea3b Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sat, 3 Nov 2012 18:55:07 +0100 Subject: Document compiler option 'inline_list_funcs' --- lib/compiler/doc/src/compile.xml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lib/compiler/doc/src/compile.xml b/lib/compiler/doc/src/compile.xml index 27d750f929..ddaae2655d 100644 --- a/lib/compiler/doc/src/compile.xml +++ b/lib/compiler/doc/src/compile.xml @@ -815,6 +815,32 @@ pi() -> 3.1416. +
+ Inlining of list functions +

The compiler can also inline a variety of list manipulation functions + from the stdlib's lists module.

+ +

This feature must be explicitly enabled with a compiler option or a + -compile() attribute in the source module.

+ +

To enable inlining of list functions, use the inline_list_funcs + option.

+ +

The following functions are inlined:

+ + lists:all/2 + lists:any/2 + lists:foreach/2 + lists:map/2 + lists:flatmap/2 + lists:filter/2 + lists:foldl/3 + lists:foldr/3 + lists:mapfoldl/3 + lists:mapfoldr/3 + +
+
Parse Transformations -- cgit v1.2.3