Namespace Popcorn.Dictionary


namespace Popcorn.Dictionary
Base functions and objects to build dictionaries.
Authors:
Adam Smyczek
Brian Wilkerson

Object Summary
A base dictionary object provides common generators for array dictionaries.

Function Summary
object dictionary(any[] dict)
Creates a Dict object for an dictionary array.
generator[int] loremIpsum(integer max)
generator[int] loremIpsum(integer min, integer max)
Random length lorem ipsum generator.

Function Details

function dictionary

object dictionary(any[] dict)
Creates a Dict object for an dictionary array.
For example:
   The pronouns dictionary
     var pronoun = dictionary(['I', 'you', 'he', 'she', 'it']);
   provides generators:
     pronoun.list(), pronoun.element(), etc.
 
Parameters:
dict - a dictionary array.
Returns:
a dictionary object.
Defined in Popcorn.Dictionary

function loremIpsum

generator[int] loremIpsum()
generator[int] loremIpsum(integer max)
generator[int] loremIpsum(integer min, integer max)
Random length lorem ipsum generator.
Parameters:
No arguments - generates a range from 0 to lorem ipsum length
One int argument - generates a range from 0 to lorem ipsum length.
max - range max value.
two int arguments - from-to range.
min - from integer
max - to integer
Defined in Popcorn.Dictionary