imported>Eric Evers |
imported>Eric Evers |
Line 2: |
Line 2: |
|
| |
|
| =Lists Module= | | =Lists Module= |
| | |
| | ==Math== |
| | math:asin(1). |
| | 3.1415 |
| | sqrt(4). |
| | 2 |
|
| |
|
| ==Map== | | ==Map== |
|
| |
| 6> Sqrt = fun(X) -> math:sqrt(X) end. | | 6> Sqrt = fun(X) -> math:sqrt(X) end. |
| #Fun<erl_eval.6.56006484> | | #Fun<erl_eval.6.56006484> |
Line 12: |
Line 17: |
|
| |
|
| ==Sort== | | ==Sort== |
|
| |
| lists:sort([2,4,3,5]). | | lists:sort([2,4,3,5]). |
| [2,3,4,5] | | [2,3,4,5] |
Revision as of 11:59, 5 May 2008
The metadata subpage is missing. You can start it via filling in this form or by following the instructions that come up after clicking on the [show] link to the right.
|
Do you see this on PREVIEW? then SAVE! before following a link.
A - For a New Cluster use the following directions
Subpages format requires a metadata page.
Using the following instructions will complete the process of creating this article's subpages.
- Click the blue "metadata template" link below to create the page.
- On the edit page that appears paste in the article's title across from "
pagename = ".
- You might also fill out the checklist part of the form. Ignore the rest.
- For background, see Using the Subpages template Don't worry--you'll get the hang of it right away.
- Remember to hit Save!
the "metadata template".
However, you can create articles without subpages. Just delete the {{subpages}} template from the top of this page and this prompt will disappear. :) Don't feel obligated to use subpages, it's more important that you write sentences, which you can always do without writing fancy code.
|
B - For a Cluster Move use the following directions
The metadata template should be moved to the new name as the first step. Please revert this move and start by using the Move Cluster link at the top left of the talk page.
The name prior to this move can be found at the following link.
|
|
Lists Module
Math
math:asin(1).
3.1415
sqrt(4).
2
Map
6> Sqrt = fun(X) -> math:sqrt(X) end.
#Fun<erl_eval.6.56006484>
7> lists:map(Sqrt,[1,2,3,4]).
[1.00000,1.41421,1.73205,2.00000]
Sort
lists:sort([2,4,3,5]).
[2,3,4,5]