Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
WOLFRAM LANGUAGE FEATURED EXAMPLE

Write Programs That Write Programs

Writing programs that write other programs, also called "metaprogramming," is a useful technique in generating specialized and optimized code.

    
Generate C code that adds the number 2 to any data type:
In[1]:=
Click for copyable input
Out[1]=