|
AdminTopics
|
18 Aug 2004 - 21:40 - NEW
|
BrentAFulgham
|
| |
Administration Topics These are topics related to Cookbook administration or site design. To appear in this list, a topic must have a TopicType of Admin on its CookbookForm ... |
|
AllRecipes
|
18 Aug 2004 - 21:49 - NEW
|
BrentAFulgham
|
| |
List of All Recipes These are all topics which have a CookbookForm with a TopicType of Recipe . See also ParentTopics. This list is generated automatically. SEARCH ... |
|
AuthorChapter
|
19 Aug 2004 - 18:26 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Author Guide TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"AuthorChapterComment"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
AuthorCreatingChapters
|
19 Aug 2004 - 20:37 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating Chapters Problem You want to create a new Chapter in the Cookbook Solution Creating a new Chapter is not as simple as creating a recipes, as ... |
|
AuthorFAQ
|
18 Aug 2004 - 21:38 - NEW
|
BrentAFulgham
|
| |
Author FAQ TOC How do I rename or move a topic? Select the More link at the top of the topic you want to rename. The page that comes up has an option to "Rename/Move ... |
|
AuthorGuide
|
18 Aug 2004 - 21:37 - NEW
|
BrentAFulgham
|
| |
Cookbook Authoring Guide This topic is under construction, now that we have a good sense of how the cookbook should be structured with Twiki. Topics that will be ... |
|
AuthorIncludingRecipesInSections
|
19 Aug 2004 - 18:37 - NEW
|
BrentAFulgham
|
| |
Including Recipes in Sections At the bottom of every page is a form called the CookbookForm. The organisation of the site depends on the values in this form, so take ... |
|
AuthorRecipes
|
19 Aug 2004 - 18:31 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup |
|
BecomingAnAuthor
|
19 Aug 2004 - 18:30 - NEW
|
BrentAFulgham
|
| |
Becoming An Author To become an author. visit TWiki.TWikiRegistration and fill out the registration form. Anyone can become a cookbook author, and contribute to the ... |
|
BookIntroduction
|
29 Aug 2004 - 23:27 - r1.3
|
BrentAFulgham
|
| |
Introduction The Erlang Cookbook's primary aim is to document short "recipes", using Erlang, that solve common programming problems. Parts of the Cookbook are specific ... |
|
BookPreface
|
20 Aug 2004 - 05:10 - NEW
|
BrentAFulgham
|
| |
Preface The Erlang Cookbook is designed to be a good starting point for learning about the language, the OTP platform, and fault tolerant programming. This book was ... |
|
ChapterStructure
|
18 Aug 2004 - 21:32 - NEW
|
BrentAFulgham
|
| |
Cookbook Chapter Structure TOC Introduction This is technical documentation of the Cookbook chapter structure. Documentation for authors will be based on the automated ... |
|
CompilationCopyright
|
29 Aug 2004 - 23:43 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Compilation Copyright As described in CopyRight, while contributors retain the copyright to their own original material which is submitted to this Cookbook ... |
|
CookbookBrainStorm
|
18 Aug 2004 - 21:41 - NEW
|
BrentAFulgham
|
| |
Cookbook BrainStorm What should a cookbook contain? Add your ideas the list below. Main.BrentAFulgham 18 Aug 2004 |
|
CookbookFAQ
|
29 Aug 2004 - 23:45 - NEW
|
BrentAFulgham
|
| |
FAQ What Will Happen to any Royalties if the Cookbook is Published? Should the Cookbook be published we will consider several uses for the royalties: Start a non ... |
|
CookbookForm
|
18 Aug 2004 - 21:18 - NEW
|
BrentAFulgham
|
| |
Cookbook Topic Classification Form Name Type Size Values Tooltip message TopicType select 1 Specifies the type of a topic that belongs in the Cookbook ParentTopic ... |
|
CookbookStructure
|
18 Aug 2004 - 21:30 - NEW
|
BrentAFulgham
|
| |
Cookbook Structure Proposal TOC Note Below is the proposal for the new cookbook structure, written prior to implementation. The technical details of the final design ... |
|
CopyRight
|
29 Aug 2004 - 23:32 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Copyright By submitting material to this Cookbook web site ("the Cookbook"), you are agreeing to the following terms: Material that you submit to the ... |
|
CreatingRecipes
|
19 Aug 2004 - 18:35 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating Recipes This page discusses both reasons for creating recipes and provides guidance on creating recipes. area. How To Create Recipes Use the ... |
|
DateTime
|
28 Aug 2004 - 22:49 - NEW
|
BrentAFulgham
|
| |
DateTime Erlang DateTime values are a set of tuples of the form: begin erlang {Date, Time} end Where Date and Time are defined as follows: begin erlang {Year, Month ... |
|
EditingExistingText
|
19 Aug 2004 - 18:39 - NEW
|
BrentAFulgham
|
| |
Editing Existing Text There are many different types of editing, from fixing typos through adding comments to wholescale restructuring of pages. Always think about ... |
|
FileChapter
|
01 Sep 2004 - 06:46 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Files and Directories TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"FileChapterComment"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
FileCountLines
|
03 Sep 2004 - 07:11 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Counting Lines in a File Problem You need to count how many lines are in a file. Solution begin erlang int countlines(Device, Result) case io:get line ... |
|
FileCreateDeepDirectory
|
03 Sep 2004 - 07:14 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating Directories Including Parent Directories Problem You want to be able to create a directory without having to verify each parent element of the ... |
|
FileDeletingAFile
|
03 Sep 2004 - 07:20 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Deleting a File Problem You want to delete a file. Solution Use Erlang's standard function file:delete . begin erlang 1 file:delete("/this/file/will ... |
|
FileIntroduction
|
07 Jan 2007 - 15:49 - r1.2
|
KlausMomberger
|
| |
STARTINCLUDE Introduction This chapter deals with file access; that is, opening files, passing files as arguments to procedures that work with them, and so on. File ... |
|
FileIsADirectory
|
01 Sep 2004 - 00:00 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Testing Whether A File Is A Directory Problem You have a list of file names, which includes the names of some directories. You want to test if a name ... |
|
FileMakePlatformIndependentPath
|
01 Sep 2004 - 00:06 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating a Platform Independent Path Problem You want to create a directory in a platform independent way. The directory is several levels deep and you ... |
|
FileMaybeMakeDirectory
|
01 Sep 2004 - 00:10 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Making A Directory If It Doesn't Already Exist Problem You want to create a directory only if it doesn't already exist. Solution The filelib:ensure dir ... |
|
FileRead
|
07 Feb 2006 - 17:00 - r1.2
|
MarkWutka
|
| |
STARTINCLUDE Reading An Entire Text File Problem You want to read the lines from a file and store them in a list. Solution begin erlang readlines(FileName) {ok, ... |
|
FileReadingLines
|
18 Jul 2006 - 15:23 - r1.4
|
MrsHarris
|
| |
STARTINCLUDE Reading Lines from a Text File Erlang offers the get line function for reading lines of text from an IoDevice. The following are some useful procedures ... |
|
FileRecipes
|
01 Sep 2004 - 00:00 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup Main.BrentAFulgham 01 Sep 2004 |
|
FileSplitPath
|
01 Sep 2004 - 00:17 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Splitting a Path into All of Its Parts Problem You want to split a path into all of its components. Solution The split function in the Erlang standard ... |
|
FileWalkDirectoryTree
|
02 Sep 2004 - 07:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Walking Directory Trees Problem You need to look at every file in a directory, or an entire directory tree, that matches a given pattern. Solution wildcard ... |
|
HashChapter
|
31 Aug 2004 - 17:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Hashes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"HashChapterComments"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup Main ... |
|
HashIntroduction
|
31 Aug 2004 - 17:51 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Introduction Erlang provides native support for hash tables through the dict and ets modules. dict provides a simple dictionary implementation, in which ... |
|
HashRecipeAddingElement
|
31 Aug 2004 - 20:26 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Adding an Element to a Hash Problem You need to add an entry to a Hash. Solution Use the dict:append/3 or dict:store/3 functions to add to an existing ... |
|
HashRecipeImmutable
|
31 Aug 2004 - 18:55 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Creating a Hash with Immutable Keys or Values Problem You would like to have a hash table whose values or keys couldn't be modified once set. Solution ... |
|
HashRecipePresenceOfKeys
|
31 Aug 2004 - 19:04 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Testing for the Presence of a Key in a Hash Problem You need to know wheter a hash (Dictionary) has a particular key, regardless of whatever value may ... |
|
HashRecipePrinting
|
31 Aug 2004 - 20:34 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Printing a Hash Problem You want to print a hash (keys and values). Solution Using recipe HashRecipeTraverse we can easily print all the elements in ... |
|
HashRecipeTraverse
|
31 Aug 2004 - 20:23 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Traversing a Hash Problem You want to perform an action on each entry in a hash. Solution Use one of the built-in traversal functions: For the dict module ... |
|
HashRecipes
|
31 Aug 2004 - 17:58 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup Main.BrentAFulgham 31 Aug 2004 |
|
HashRemove
|
31 Aug 2004 - 19:23 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Deleting from a Hash Problem Remove an entry {key, value} from a hash table. Solution The dict:erase function erases all entries in the table with a ... |
|
HashRetrieve
|
31 Aug 2004 - 18:56 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Retrieving an Element from a Hash STOPINCLUDE Main.BrentAFulgham 31 Aug 2004 |
|
HelpNeeded
|
18 Aug 2004 - 21:43 - NEW
|
BrentAFulgham
|
| |
Pages with problems Note here if you come across a page with problems, but don't know how to fix it. Current Problems Work in Progress Solved Problems Main.BrentAFulgham ... |
|
IdiomChapter
|
19 Aug 2004 - 18:03 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Common Idioms TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"IdiomChapterComments"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
IncludingSourceCode
|
19 Aug 2004 - 18:51 - NEW
|
BrentAFulgham
|
| |
Including Source Code in the Cookbook Keywords and Inline Expressions Keywords and other inline expressions can be highlighted and rendered in fixed font by surrounding ... |
|
LIstRecipeFiltering
|
29 Aug 2004 - 08:09 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Filtering Lists Problem You have a list with a bunch of items, but you want to have a copy of that list with some items removed. Solution lists:filter ... |
|
LibraryIndex
|
18 Aug 2004 - 21:49 - NEW
|
BrentAFulgham
|
| |
Scheme Library Index This page lists pages that describe libraries of Erlang code. Any page that has the TopicType in its CookbookForm set to Library is included ... |
|
ListChapter
|
28 Aug 2004 - 22:59 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE List Recipes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"ListChapterAdmin"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
ListConstructing
|
29 Aug 2004 - 08:09 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Constructing Lists Problem Solution Discussion buildlist, cons etc. STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 29 Aug 2004 ... |
|
ListExtractingSublist
|
28 Aug 2004 - 23:36 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Extracting a sublist Problem Given a list, extract a segment specified by a start and an end index (inclusive). Solution Use the lists module sublist ... |
|
ListExtractingUniqueElements
|
28 Aug 2004 - 23:51 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Extracting Unique Elements from a List Problem You want to eliminate duplicate values from a list. Solution There are several possible solutions for ... |
|
ListFilterElements
|
29 Aug 2004 - 07:20 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Finding All Elements in a List Matching Certain Criteria Problem From a list, you want only the elements that match certain criteria. This notion of ... |
|
ListIntroduction
|
28 Aug 2004 - 22:58 - NEW
|
BrentAFulgham
|
| |
This Introduction is still ToDo. |
|
ListListMinus
|
29 Aug 2004 - 07:45 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Finding Elements in One Array but Not Another Problem You want to find elements that are in one list but not another. Solution You want to find elements ... |
|
ListRecipes
|
28 Aug 2004 - 23:35 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"ListRecipes" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield ... |
|
ListSplittingInHalves
|
29 Aug 2004 - 08:06 - NEW
|
BrentAFulgham
|
| |
Splitting a list in halves Problem Splitting a list in two lists whose lengths are half of the original. Solution Use the lists:split function. begin erlang 1 List ... |
|
ListTraversing
|
29 Aug 2004 - 08:08 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Traversing Lists Problem Solution Discussion map, for-each, fold etc. STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 29 Aug ... |
|
ListTraversingMultiple
|
09 Jul 2006 - 08:17 - r1.4
|
PhilipRobinson
|
| |
STARTINCLUDE Traversing Multiple Lists Problem You want to traverse multiple source lists in a nested fashion, but do not want to define nested functions. For example ... |
|
NewChapter
|
18 Aug 2004 - 21:31 - NEW
|
BrentAFulgham
|
| |
Create New Chapter Use the form below to create a new chapter for the cookbook. Fill in the chapter name (a TWiki.WikiWord) and title, and press the Create Chapter ... |
|
NewLibrary
|
18 Aug 2004 - 21:50 - NEW
|
BrentAFulgham
|
| |
Create New Library Use the form below to create a new library for the cookbook. Fill in the library name (a TWiki.WikiWord) and title, and press the Create Library ... |
|
NewRecipe
|
18 Aug 2004 - 21:35 - NEW
|
BrentAFulgham
|
| |
Create New Recipe Use the form below to create a new recipe for the cookbook. Fill in the recipe name (a TWiki.WikiWord) and title, and press the Create Recipe button ... |
|
NumberBiasedRands
|
01 Sep 2004 - 20:01 - r1.4
|
BrentAFulgham
|
| |
STARTINCLUDE Generating Biased Random Numbers Problem Instead of a truly random number, you wish to randomly select a value from a set in which some values are more ... |
|
NumberChapter
|
23 Aug 2004 - 19:21 - NEW
|
BrentAFulgham
|
| |
Numbers TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"NumberChapterAdmin"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup |
|
NumberCommas
|
27 Aug 2004 - 21:17 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Putting Commas in Numbers Problem You need to format a number for printing with commas (or other locale-dependant marks) in the appropriate places. This ... |
|
NumberComparing
|
23 Aug 2004 - 20:45 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Comparing Floating-Point Numbers Problem You want to compare two floating-point numbers and know if they are equal. Unfortunately, floating-point arithmetic ... |
|
NumberComplexNums
|
26 Aug 2004 - 23:35 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Using Complex Numbers Problem You wish to manipulate complex numbers (i.e., numbers with both a real and imaginary component.) This is commonly needed ... |
|
NumberConvOctHex
|
27 Aug 2004 - 01:00 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Converting Between Octal and Hexadecimal Problem You want to convert a string (e.g., "0x55" or "0755") containing an octal or hexadecimal number to the ... |
|
NumberConvertBinDec
|
24 Aug 2004 - 00:10 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Converting Between Binary and Decimal Problem You would like to display the binary representation of an integer, or the integer representation of a binary ... |
|
NumberCorrectPlurals
|
01 Sep 2004 - 17:24 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Printing Correct Plurals Problem You would like to generate messages reporting quantities with correct grammar. For example, you would like to say "There ... |
|
NumberDiffRandNum
|
24 Aug 2004 - 23:09 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Generating Different Random Numbers Problem You notice that several processes are getting the same "random" number sequence. You would like each process ... |
|
NumberIntroduction
|
23 Aug 2004 - 19:24 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Introduction Numbers are basic to just about any computation. They're used for array indexes, temperatures, salaries, and an infinite variety of things ... |
|
NumberIsNumber
|
23 Aug 2004 - 20:00 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Checking Whether a String Is a Valid Number Problem You need to check if a given string contains a valid number. Solution We supose that we want to check ... |
|
NumberOpListInts
|
24 Aug 2004 - 00:58 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Operating on a Series of Integers Problem You want to perform an operation on all integers in a certain range. Solution Use the lists:map , lists:foldl ... |
|
NumberRandomNumber
|
24 Aug 2004 - 22:38 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Generating Random Numbers Problem You want a random number from a given range. For example, you wish to randomly select one element from an array, simulate ... |
|
NumberRecipes
|
23 Aug 2004 - 20:01 - NEW
|
BrentAFulgham
|
| |
Recipes SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"NumberRecipes" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield(TopicOrder ... |
|
NumberRomanNumerals
|
01 Sep 2004 - 18:02 - r1.2
|
BrentAFulgham
|
| |
Working with Roman Numerals Problem You want to convert decimal numbers to Roman numerals and Roman numerals to decimal numbers. Solution Here is some example code ... |
|
NumberRounding
|
23 Aug 2004 - 23:47 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Rounding Floating-Point Numbers Problem You need to round a floating-point number to an integer. Solution Use one of the procedures erlang:round , ceiling ... |
|
NumberTakingLogs
|
26 Aug 2004 - 22:41 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Taking Logarithms Problem You want to take a logarithm in various bases. Solution For logarithms to base e , use the built-in math:log : begin erlang ... |
|
ParentTopic
|
19 Aug 2004 - 16:31 - r1.2
|
BrentAFulgham
|
| |
Parent Topic List The following are topics considered suitable as ParentTopics on the CookbookForm. These lists are generated automatically. Chapters These are topics ... |
|
RecentSiteChanges
|
18 Aug 2004 - 21:51 - NEW
|
BrentAFulgham
|
| |
Recent Site Changes This page lists recent changes to the site structure. We're closing in on a stable structure, but until stability is reached, this page should ... |
|
RecipeIndex
|
18 Aug 2004 - 21:20 - NEW
|
BrentAFulgham
|
| |
Cookbook Recipe Index The following is a list of all Cookbook topics, by chapter. This is intended to replace the TOC. This list is generated by a query based on ... |
|
RecipeStub
|
19 Aug 2004 - 16:29 - r1.2
|
BrentAFulgham
|
| |
Recipe Stubs These are recipes waiting to be written, or that are partially complete. A great opportunity to give your typing fingers a workout! The recipes listed ... |
|
RecipeStubs
|
18 Aug 2004 - 21:42 - NEW
|
BrentAFulgham
|
| |
Recipe Stubs These are recipes waiting to be written, or that are partially complete. A great opportunity to give your typing fingers a workout! The recipes listed ... |
|
RegexAbbreviations
|
31 Aug 2004 - 05:39 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Abbreviations Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexAndOrAndNot
|
31 Aug 2004 - 05:41 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Expressing AND, OR, and NOT in a Single Pattern Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham ... |
|
RegexApproximateMatching
|
31 Aug 2004 - 05:43 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Approximate Matching Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexChapter
|
30 Aug 2004 - 00:36 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Regular Expressions TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"RegexChapterComment"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
RegexCommentRegExp
|
30 Aug 2004 - 07:14 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Commenting Regular Expressions Problem You want to make it easy to maintain and understand your complex regular expressions. Solution Unfortunately, ... |
|
RegexDetectingDuplicates
|
31 Aug 2004 - 05:44 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Detecting Duplicate Words Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexFindNth
|
31 Aug 2004 - 05:46 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Finding the Nth Occurrence of a Match Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 ... |
|
RegexGrabbag
|
31 Aug 2004 - 05:46 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Regular Expression Grabbag Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexGreedyVsNonGreedyes
|
31 Aug 2004 - 05:47 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Greedy and Non-Greedy Matches Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexHonoringLocale
|
31 Aug 2004 - 05:48 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Honoring Locale Settings in Regular Expressions Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham ... |
|
RegexIntroduction
|
30 Aug 2004 - 00:38 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Introduction Lisps and members of the Prolog family (like Erlang) in general are sort of famous for looking down on Regular Expressions. Other languages ... |
|
RegexMatchMultipleLines
|
31 Aug 2004 - 05:49 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Multiple Lines Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexMatchingLetters
|
30 Aug 2004 - 23:24 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Letters Problem You want to see if a value contains only alphabetic characters. Solution A first approximation can be achieved using the standard ... |
|
RegexMatchingWords
|
30 Aug 2004 - 23:38 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Words Problem You want to select words from a string. Solution Determine the defining features of a word for your specific application, then ... |
|
RegexMultiByteCharacters
|
31 Aug 2004 - 05:50 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Multiple-Byte Characters Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexPatternSeparator
|
31 Aug 2004 - 05:50 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Reading Records with a Pattern Separator Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug ... |
|
RegexRangeOfLines
|
31 Aug 2004 - 05:51 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Extracting a Range of Lines Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexRecipes
|
30 Aug 2004 - 00:46 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup Main.BrentAFulgham 30 Aug 2004 |
|
RegexReference
|
30 Aug 2004 - 00:44 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE References The AWK Programming Language, by A. V. Aho, B. W. Kernighan, P. J. Weinberger. Mastering Regular Expressions, written by Jeffrey Friedl and ... |
|
RegexShellGlobs
|
31 Aug 2004 - 05:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching Shell Globs as Regular Expressions Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug ... |
|
RegexSpeedUpInterpolation
|
31 Aug 2004 - 05:52 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Speeding Up Interpolated Matches Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexSplitInclusive
|
31 Aug 2004 - 05:38 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Splitting a String, Including Matches Problem You want to split a string based on some pattern, but you want the matches included. Solution The regexp ... |
|
RegexTcgrep
|
31 Aug 2004 - 05:53 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Program: tcgrep Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexTestingValidPattern
|
31 Aug 2004 - 05:54 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Testing for a Valid Pattern Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexUrlify
|
31 Aug 2004 - 05:55 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Program: urlify Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RegexpMatchingFromLastPattern
|
31 Aug 2004 - 05:55 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching from Where the Last Pattern Left Off Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 ... |
|
RegexpValidEmail
|
31 Aug 2004 - 05:56 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Matching a Valid Email Address Problem Solution Discussion STOPINCLUDE Comments about this recipe Contributors Main.BrentAFulgham 31 Aug 2004 |
|
RelatedProjects
|
29 Aug 2004 - 23:48 - NEW
|
BrentAFulgham
|
| |
Related Projects PLEAC Project The PLEAC is a project to translate the examples from the PerlCookbook to other languages. Other Cookbooks It useful to see what other ... |
|
SectionIndex
|
19 Aug 2004 - 16:31 - r1.2
|
BrentAFulgham
|
| |
This page is a prototype, under development. It is like the new auto-generated TOC, but with chapters having their own headings, rather than being bulleted items. ... |
|
SectionStub
|
19 Aug 2004 - 16:29 - r1.2
|
BrentAFulgham
|
| |
Section Stubs These are sections waiting to be written, or that are partially complete. Write one of these and ensure your place in Scheme history! The recipes listed ... |
|
StringBasics
|
13 Nov 2007 - 16:23 - r1.7
|
LukiShei
|
| |
STARTINCLUDE String Basics Few would recommend Erlang as a high-performance string manipulating language. Strings in erlang are simply lists of characters, with a ... |
|
StringCSV
|
17 May 2007 - 18:50 - r1.2
|
JosephWecker
|
| |
STARTINCLUDE Processing Comma Separated Values Problem You want to work with comma separated value records, such as those exported from popular spreadsheet and database ... |
|
StringChapter
|
19 Aug 2004 - 21:15 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE String Recipes TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"StringChapterComments"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
StringCheckForChar
|
23 Aug 2004 - 18:39 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Checking a String for a Character Problem You need to find out if a string contains a character. You probably want to know the index of where the character ... |
|
StringCombine
|
21 Aug 2004 - 05:05 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Combining Strings Problem You need to combine several strings into a larger string. Solution The built-in concatenation operator ( ) is the de-facto ... |
|
StringCompare
|
23 Aug 2004 - 18:38 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Comparing Strings Problem You need to compare two strings. Solution Use the comparison functions from the string library for equality: begin erlang 1 ... |
|
StringControlCase
|
25 Nov 2008 - 21:41 - r1.3
|
IamWilhelm
|
| |
STARTINCLUDE Controlling Case Problem You need to convert a string to all uppercase or all lowercase. Solution begin erlang 1 string:to upper("hello"). "HELLO" 2 ... |
|
StringEval
|
23 Aug 2004 - 18:39 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Evaluating Erlang Code in a String Problem You want to evaluate Erlang code stored in a string. Solution Use erl scan:string to convert the string into ... |
|
StringFilterCharSet
|
23 Aug 2004 - 18:37 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Filtering a String for a Set of Characters Problem You want to remove all but a specified set of characters from a string. Solution This is really a ... |
|
StringFormatCode
|
23 Aug 2004 - 18:32 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Formatting Erlang Code Problem You have some Erlang code that you want to format readably. Solution The erl pp module provides this functionality. The ... |
|
StringIndent
|
23 Aug 2004 - 18:33 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Changing the Indentation of a String Problem You have a string made up of multiple lines, and you need to build a string, adding or removing spaces so ... |
|
StringInterpolation
|
24 Aug 2004 - 00:19 - r1.3
|
BrentAFulgham
|
| |
STARTINCLUDE Interpolating Functions and Expressions Within Strings Problem You want to create string using a mixture of literals and computed values. For example ... |
|
StringIntroduction
|
30 Nov 2005 - 06:06 - r1.3
|
AntonVanStraaten
|
| |
Introduction In Erlang, a string is a list of characters. The designers of Erlang thoughtfully included a bit of syntactic sugar so that strings in source code could ... |
|
StringIsItTest
|
23 Aug 2004 - 18:42 - r1.3
|
BrentAFulgham
|
| |
STARTINCLUDE Testing Whether an Object is a String Problem You need to test if an object is a string. Since Erlang does not have objects per se , the goal here is ... |
|
StringNumber
|
15 Jun 2006 - 15:02 - r1.4
|
PhilipRobinson
|
| |
STARTINCLUDE Testing Whether a String Represents an Integer Problem You want to determine whether a string is an integer Solution The io lib:fread function is the ... |
|
StringOther
|
23 Aug 2004 - 19:02 - NEW
|
BrentAFulgham
|
| |
Other recipes of interest SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"StringOther" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield ... |
|
StringRecipe
|
19 Aug 2004 - 22:46 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes SEARCH{"TopicType. value \"Recipe;ParentTopic. value \"StringRecipe" casesensitive "on" regex "on" nosearch "on" nototal "on" order "formfield ... |
|
StringRecipeConversionStringVsAtom
|
23 Aug 2004 - 18:26 - r1.2
|
BrentAFulgham
|
| |
Converting Between Strings and Atoms Problem You want to convert an atom to a string or vice versa Solution The built-in function list to atom converts from a string ... |
|
StringRecipeConvertToFromASCII
|
23 Aug 2004 - 18:41 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Converting Between ASCII Characters and Values Problem You want to get the number representing the ASCII value of a character, or you want to display ... |
|
StringRecipeDecodingBinaryMessages
|
24 Aug 2004 - 00:23 - r1.3
|
BrentAFulgham
|
| |
STARTINCLUDE Decoding Binary Messages Problem You have a string containing the characters 0 and 1, representing, in binary, the ASCII values of some text. You want ... |
|
StringRecipeLevenshtein
|
21 Dec 2005 - 13:29 - r1.2
|
AdamLindberg
|
| |
STARTINCLUDE Testing Similarity of Two Strings via Levenshtein Distance Problem You want to determine how "similar" two strings (or lists, or vectors) are, such as ... |
|
StringRecipeSortingListOfStrings
|
23 Aug 2004 - 19:09 - NEW
|
BrentAFulgham
|
| |
Sorting a list of strings Problem You want to sort a list of strings. Solution Use the lists:sort operation to sort the lists. Note that by default sorting is case ... |
|
StringReference
|
23 Aug 2004 - 19:01 - NEW
|
BrentAFulgham
|
| |
References http://www.erlang.org/doc/r9c/pdf/reference manual-5.3.pdf String section of the Erlang Reference Manual (Sect 1.2.11) http://www.erlang.org/doc/r9c/lib ... |
|
StringReverse
|
23 Aug 2004 - 18:40 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Reversing a String by Words or Characters Problem You want to reverse the words or characters in a string Solution In this case, you have to choose between ... |
|
StringSoundexMatching
|
23 Aug 2004 - 18:53 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Soundex Matching Problem You want to generate Soundex hashes of surnames, for doing "sounds-like" indexing databases, or retrieving information from ... |
|
StringSubstring
|
01 Sep 2004 - 17:22 - r1.3
|
BrentAFulgham
|
| |
STARTINCLUDE Accessing Substrings Problem You want to extract part of a string. Solution Option 1: Generic Lists Module The lists:sublist function is the most general ... |
|
StringTabs
|
23 Aug 2004 - 18:32 - r1.2
|
BrentAFulgham
|
| |
STARTINCLUDE Expanding and Compressing Tabs Problem You want to convert spaces in a string to tabs, or vice versa. Solution You can define this by searching for tabs ... |
|
TOC
|
20 Aug 2004 - 05:15 - r1.8
|
BrentAFulgham
|
| |
Erlang Cookbook INCLUDE{"Erlang.BookPreface"} Table of Contents The following table of contents is generated automatically. It includes all topics with a TopicType ... |
|
TableOfContents
|
18 Aug 2004 - 22:05 - NEW
|
BrentAFulgham
|
| |
Schematics Scheme Cookbook The following table of contents is generated automatically. It includes all topics with a TopicType of Chapter in the CookbookForm. See ... |
|
TimeArithmetic
|
28 Aug 2004 - 07:49 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Time Arithmetic Problem You have a date and time and want to find the date and time of some period in the future or past. Solution By using the functions ... |
|
TimeChapter
|
27 Aug 2004 - 23:37 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Dates, and Time TMPL:P{"chapterquery"} STOPINCLUDE TMPL:P{"chaptercommentlink"} INCLUDE{"TimeChapterComments"} Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup ... |
|
TimeEpochToTime
|
28 Aug 2004 - 07:27 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Converting Epoch Seconds to DMYHMS Problem You have a date and time in Erlang Epoch seconds (i.e., Gregorian calendar year 0 seconds), and you want to ... |
|
TimeISO8601
|
28 Aug 2004 - 08:53 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Converting Between struct:time and ISO-8601 Format Problem You have an application that requires you to use ISO-8601 Format for input and output. Solution ... |
|
TimeIntroduction
|
01 Sep 2004 - 17:25 - r1.3
|
BrentAFulgham
|
| |
STARTINCLUDE Introduction Erlang provides basic, but important ways of manipulating time and dates. erlang:localtime built-in function returns the current time as ... |
|
TimeRFC1123
|
28 Aug 2004 - 08:37 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Writing and Parsing RFC 1123 Dates and Times Problem You need to convert from an Erlang Date or Time tuple to RFC 1123 format Dates and Times. Solution ... |
|
TimeRecipes
|
28 Aug 2004 - 00:16 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Recipes TMPL:P{"recipequery"} STOPINCLUDE Set ALLOWTOPICCHANGE Main.ErlangEditorsGroup |
|
TimeToEpoch
|
28 Aug 2004 - 00:27 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Converting DMYHMS to Seconds Problem You want to convert a date, a time, or both with distinct values for day, month, year, etc. to seconds. Solution ... |
|
TimeToday
|
05 Mar 2010 - 03:20 - r1.2
|
JonWatte
|
| |
STARTINCLUDE Finding Today's Date Problem You need to find the year, month, and day values for today's date. Solution Use erlang:now() , and now to datetime to get ... |
|
TimeWeekOfTheYear
|
28 Aug 2004 - 08:14 - NEW
|
BrentAFulgham
|
| |
STARTINCLUDE Week of the Year, and Day of the Week/Month/Year Problem Given a date, you need to find out what week of the year, day of the week, day of the month ... |
|
ToDo
|
18 Aug 2004 - 21:46 - NEW
|
BrentAFulgham
|
| |
ToDo Items Below is a list of pages which have work ToDo. Any page which includes a reference to this topic (ToDo) will appear in the list. If this list isn't long ... |
|
TopicOrder
|
19 Aug 2004 - 16:27 - NEW
|
BrentAFulgham
|
| |
TopicOrder An explanation of topic ordering should go here. SiteToDo. Main.BrentAFulgham 19 Aug 2004 |
|
TopicType
|
19 Aug 2004 - 16:28 - r1.2
|
BrentAFulgham
|
| |
Cookbook Topic Types Each page in the Cookbook web is assigned a TopicType via its CookbookForm. This type determines which pages the topic will automatically be ... |
|
WebChanges
|
16 Aug 2001 - 19:58 - NEW
|
PeterThoeny
|
| |
INCLUDE{" TWIKIWEB .WebChanges"} |
|
WebHome
|
17 Jul 2007 - 16:58 - r1.8
|
FrancescoC
|
| |
Welcome to the Erlang Cookbook. The Erlang Cookbook is a collaborative effort to produce practical documentation for using the Erlang language, particularly in commercial ... |
|
WebIndex
|
24 Nov 2001 - 11:41 - r1.2
|
PeterThoeny
|
| |
SEARCH{"\. " scope "topic" regex "on" nosearch "on"} See also the faster WebTopicList |
|
WebNotify
|
04 Sep 2004 - 07:25 - r1.3
|
AntonVanStraaten
|
| |
This is a subscription service to be automatically notified by e-mail when topics change in this Erlang web. This is a convenient service, so you do not have to come ... |
|
WebPreferences
|
02 Sep 2004 - 21:46 - r1.11
|
BrentAFulgham
|
| |
TWiki.Erlang Web Preferences The following settings are web preferences of the TWiki.Erlang web. These preferences overwrite the site-level preferences in TWIKIWEB ... |
|
WebRss
|
30 Jan 2003 - 08:15 - NEW
|
PeterThoeny
|
| |
TWiki's Erlang web SCRIPTURL /view SCRIPTSUFFIX /Erlang The Erlang web of TWiki. TWiki is a Web-Based Collaboration Platform for the Corporate World. INCLUDE{" TWIKIWEB ... |
|
WebSearch
|
08 Aug 2001 - 05:26 - NEW
|
PeterThoeny
|
| |
INCLUDE{" TWIKIWEB .WebSearch"} |
|
WebStatistics
|
13 Mar 2010 - 14:49 - r1.128
|
Main.guest
|
| |
Statistics for Erlang Web Month: Topic views: Topic saves: File uploads: Most popular topic views: Top contributors for topic save and uploads: Mar 2010 4897 1 0 ... |
|
WebTopicEditTemplate
|
18 May 2004 - 23:51 - NEW
|
AntonVanStraaten
|
| |
WIKIUSERNAME DATE |
|
WebTopicList
|
24 Nov 2001 - 11:40 - NEW
|
PeterThoeny
|
| |
TOPICLIST{" $name "} See also the verbose WebIndex. |