Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update Perl 6 documentation fathead according to @rpicard advice.

  • Loading branch information...
commit 0fca4530fb96ccb6ac8e66981ee3ab21f92a9b40 1 parent c685e04
GlitchMr authored
Showing with 449 additions and 241 deletions.
  1. +1 −0  perl6_doc/fetch.sh
  2. +394 −217 perl6_doc/output.txt
  3. +54 −24 perl6_doc/parse.pl
View
1  perl6_doc/fetch.sh
@@ -5,3 +5,4 @@
mkdir -p download
cd download
wget -np -nc -r -l 2 http://doc.perl6.org/
+cd ..
View
611 perl6_doc/output.txt
@@ -1,217 +1,394 @@
-Str.wordcase (Perl 6) http://doc.perl6.org/type/Str#wordcase Performs a Unicode titlecase operation on the first character of each word of the string (as defined by a regex « boundary), and forces the rest of the letters through a filter that defaults to lc. After this operation, if any exceptions are supplied and if the word is found in the set of exceptions, the first character is also forced through the filter. Note that the exceptions must be spelled with an initial titlecase, such as "By" or "And", to produce "by" or "and". multi sub wordcase(Str:D :&filter = &lc, :%exceptions = set()) returns Str\nmulti method wordcase(Str:D: :&filter = &lc, :%exceptions = set()) returns Str
-Date.day-of-year (Perl 6) http://doc.perl6.org/type/Date#day-of-year Returns the day of the year (1..366). method day-of-year(Date:D:) returns Int:D
-List.shift (Perl 6) http://doc.perl6.org/type/List#shift Removes and returns the first item from the list. Fails for an empty list. multi sub shift(List:D )\nmulti method shift(List:D:)
-Parameter.slurpy (Perl 6) http://doc.perl6.org/type/Parameter#slurpy Returns True for slurpy parameters.
-Pair.cmp (Perl 6) http://doc.perl6.org/type/Pair#cmp The type-agnostic comparator; compares two Pairs. Compares first their key parts, and then compares the value parts if the keys are equal. multi sub infix:<cmp>(Pair:D, Pair:D)
-Rational.numerator (Perl 6) http://doc.perl6.org/type/Rational#numerator Returns the numerator. method numerator(Rational:D:) returns NuT:D
-Mu.print (Perl 6) http://doc.perl6.org/type/Mu#print Prints value to $*OUT after stringification using .Str method without newline at end. multi method print() returns Bool:D
-Numeric.exp (Perl 6) http://doc.perl6.org/type/Numeric#exp Returns $base to the power of the number, or e to the power of the number if called without a second argument. multi sub exp(Numeric:D, Numeric:D $base = e) returns Numeric:D\nmulti method exp(Numeric:D: Numeric:D $base = e) returns Numeric:D
-Match.hash (Perl 6) http://doc.perl6.org/type/Match#hash Returns a hash of named submatches.
-Match.ast (Perl 6) http://doc.perl6.org/type/Match#ast Returns the AST (ie payload).
-Bool.prefix:<so> (Perl 6) http://doc.perl6.org/type/Bool#prefix%3A%3Cso%3E Coerces its argument to Bool, has looser precedence than < prefix:<? >>. multi sub prefix:<so>(Mu) returns Bool:D
-Grammar.parse (Perl 6) http://doc.perl6.org/type/Grammar#parse Matches the grammar against $str, using $rule as start rule, optionally applying $actions as actions object. method parse(Grammar:D: $str, :$rule = 'TOP', :$actions) returns Match:D
-Complex.polar (Perl 6) http://doc.perl6.org/type/Complex#polar Returns a two-element list of the polar coordinates for this value, ie magnitude and angle in radians. method polar(Complex:D:) returns Positional:D
-Version.parts (Perl 6) http://doc.perl6.org/type/Version#parts Returns the list of parts that make up this Version object method parts(Version:D:) returns List:D
-Backtrace.full (Perl 6) http://doc.perl6.org/type/Backtrace#full Returns a full string representation of the backtrace, including hidden frames, compiler-specific frames and those from the setting. multi method full(Backtrace:D:) returns Str:D:
-IO.modified (Perl 6) http://doc.perl6.org/type/IO#modified Timestamp when the file was last modified. "path/to/file".IO.modified()
-Enum.value (Perl 6) http://doc.perl6.org/type/Enum#value Returns the value part of the Enum. multi method value(Enum:D:)
-Pair.value (Perl 6) http://doc.perl6.org/type/Pair#value Returns the value part of the Pair. multi method value(Pair:D:) is rw
-Str.tclc (Perl 6) http://doc.perl6.org/type/Str#tclc Turns the first character to title case, and all other characters to lower case multi sub tclc(Str:D ) returns Str:D\nmulti method tclc(Str:D:) returns Str:D
-Complex.isNaN (Perl 6) http://doc.perl6.org/type/Complex#isNaN Returns true if the real or imaginary part is NaN (not a number). method isNaN(Complex:D:) returns Bool:D
-List.sort (Perl 6) http://doc.perl6.org/type/List#sort Sorts the list, smallest element first. By default < infix:<cmp >> is used for comparing list elements. multi sub sort(*@elems) returns List:D\nmulti sub sort(&by, *@elems) returns List:D\nmulti method sort(List:D:) returns List:D\nmulti method sort(List:D:, &by) returns List:D
-List.end (Perl 6) http://doc.perl6.org/type/List#end Returns the index of the last element. multi sub end($list) returns Int:D\nmulti method end(List:D:) returns Int:D
-Parameter.positional (Perl 6) http://doc.perl6.org/type/Parameter#positional Returns True if the parameter is positional.
-Mu.defined (Perl 6) http://doc.perl6.org/type/Mu#defined Returns False on the type object, and True otherwise. multi sub defined(Mu) returns Bool:D\nmulti method defined() returns Bool:D
-Str.ucfirst (Perl 6) http://doc.perl6.org/type/Str#ucfirst Perl 6 does not have a ucfirst function. See X<tc>.
-Str.chars (Perl 6) http://doc.perl6.org/type/Str#chars Returns the number of characters in the string in the current (lexically scoped) idea of what a normal character is, usually graphemes. multi sub chars(Str:D ) returns Int:D\nmulti method chars(Str:D:) returns Int:D
-Range.min (Perl 6) http://doc.perl6.org/type/Range#min Returns the start point of the range. method min(Range:D:)
-Mu.gist (Perl 6) http://doc.perl6.org/type/Mu#gist Returns a string representation of the invocant, optimized for fast recognition by humans. multi sub gist(Mu) returns Str\nmulti method gist() returns Str
-Date.gist (Perl 6) http://doc.perl6.org/type/Date#gist Returns the date in YYYY-MM-DD format (ISO 8601) multi method gist(Date:D:) returns Str:D
-Exception.gist (Perl 6) http://doc.perl6.org/type/Exception#gist Returns whatever the exception printer should produce for this exception. The default implementation returns message and backtrace separated by a newline. multi method gist(Exception:D:)
-Str.ord (Perl 6) http://doc.perl6.org/type/Str#ord Returns the codepoint number of the first character of the string multi sub ord (Str:D) returns Int:D\nmulti method ord(Str:D:) returns Int:D
-Str.lc (Perl 6) http://doc.perl6.org/type/Str#lc Returns a lower-case version of the string. multi sub lc(Str:D ) returns Str:D\nmulti method lc(Str:D:) returns Str:D
-Numeric.abs (Perl 6) http://doc.perl6.org/type/Numeric#abs Returns the absolute value of the number. multi sub abs(Numeric:D ) returns Real:D\nmulti method abs(Numeric:D:) returns Real:D
-Str.tc (Perl 6) http://doc.perl6.org/type/Str#tc Does a Unicode "titlecase" operation, that is changes the first character in the string to title case, or to upper case if the character has no title case mapping multi sub tc(Str:D ) returns Str:D\nmulti method tc(Str:D:) returns Str:D
-Backtrace::Frame.is-setting (Perl 6) http://doc.perl6.org/type/Backtrace%3A%3AFrame#is-setting Returns True if the frame is part of a setting. method is-setting(Backtrace::Frame:D) return Bool:D
-Numeric.sqrt (Perl 6) http://doc.perl6.org/type/Numeric#sqrt Returns a square root of the number. For real numbers the positive square root is returned. mulit sub sqrt(Numeric:D) returns Numeric:D\nmulit method sqrt(Numeric:D) returns Numeric:D
-List.pairs (Perl 6) http://doc.perl6.org/type/List#pairs Returns a list of pairs, with the indexes as keys and the list values as values. multi sub pairs($list) returns List:D\nmulti method pairs(List:D:) returns List:D
-EnumMap.pairs (Perl 6) http://doc.perl6.org/type/EnumMap#pairs Returns a list of all pairs in the EnumMap. method pairs(EnumMap:D:) returns List:D
-Pair.pairs (Perl 6) http://doc.perl6.org/type/Pair#pairs Returns a list of one Pair, namely this one. multi method pairs(Pair:D:)
-Match.to (Perl 6) http://doc.perl6.org/type/Match#to Returns the index of the end position of the match.
-Numeric.Real (Perl 6) http://doc.perl6.org/type/Numeric#Real If this Numeric is equivalent to a Real, return that Real. Fail with X::Numeric::Real otherwise. method Real(Numeric:D:) returns Real:D
-Parameter.rw (Perl 6) http://doc.perl6.org/type/Parameter#rw Returns True for is rw parameters.
-Mu.ACCEPTS (Perl 6) http://doc.perl6.org/type/Mu#ACCEPTS Performs a type check. Returns True if $other conforms to the invocant (which is always a type object or failure). multi method ACCEPTS(Mu:U: $other)
-Any.ACCEPTS (Perl 6) http://doc.perl6.org/type/Any#ACCEPTS Returns True if $other === self (ie it checks object identity). multi method ACCEPTS(Any:D: Mu $other)
-Code.ACCEPTS (Perl 6) http://doc.perl6.org/type/Code#ACCEPTS Usually calls the code object and passes $topic as an argument. However, when called on a code object that takes no arguments, the code object is invoked with no arguments and $topic is dropped. The result of the call is returned. multi method ACCEPTS(Code:D: Mu $topic)
-Numeric.ACCEPTS (Perl 6) http://doc.perl6.org/type/Numeric#ACCEPTS Returns True if $other is numerically the same as the invocant. multi method ACCEPTS(Numeric:D: $other)
-EnumMap.ACCEPTS (Perl 6) http://doc.perl6.org/type/EnumMap#ACCEPTS Used in smart-matching if the right-hand side is an EnumMap. multi method ACCEPTS(EnumMap:D: Positional $topic)\nmulti method ACCEPTS(EnumMap:D: Cool:D $topic)\nmulti method ACCEPTS(EnumMap:D: Regex $topic)\nmulti method ACCEPTS(EnumMap:D: Any $topic)
-Str.trim-trailing (Perl 6) http://doc.perl6.org/type/Str#trim-trailing Remove the white-space charecters from the end of a string. See also trim.
-Mu.perl (Perl 6) http://doc.perl6.org/type/Mu#perl Returns a Perlish representation of the object (i.e., can usually be reparsed to regenerate the object). multi sub perl(Mu) returns Str\nmulti method perl() returns Str
-Date.year (Perl 6) http://doc.perl6.org/type/Date#year Returns the year of the date method year(Date:D:) returns Int:D
-Range.excludes_max (Perl 6) http://doc.perl6.org/type/Range#excludes_max Returns True if the end point is excluded from the range, and False otherwise. method excludes_max(Range:D:) returns Bool:D
-Str.chomp (Perl 6) http://doc.perl6.org/type/Str#chomp Returns the string with a logical newline removed from the end. multi sub chomp(Str:D ) returns Str:D\nmulti method chomp(Str:D:) returns Str:D
-Match.prematch (Perl 6) http://doc.perl6.org/type/Match#prematch Returns the part of the original string leading up to the match.
-Mu.bless (Perl 6) http://doc.perl6.org/type/Mu#bless Lower-level object construction method than new. method bless(Mu $candidate, *%attrinit) returns Mu:D
-Str.encode (Perl 6) http://doc.perl6.org/type/Str#encode Returns a Buf which represents the original string in the given encoding and normal form. The actual return type is as specific as possible, so $str.encode('UTF-8') returns a utf8 object, $str.encode('ISO-8859-1') a buf8. multi method encode(Str:D: $encoding = $?ENC, $nf = $?NF) returns Buf
-Mu.say (Perl 6) http://doc.perl6.org/type/Mu#say Prints value to $*OUT after stringification using .gist method with newline at end. multi method say() returns Bool:D
-Date.is-leap-year (Perl 6) http://doc.perl6.org/type/Date#is-leap-year Returns True if $year is a leap year. Can be called as a class method if the year is provided. method is-leap-year($year = self.year) returns Bool:D
-Parameter.readonly (Perl 6) http://doc.perl6.org/type/Parameter#readonly Returns True for read-only parameters (the default).
-Version.plus (Perl 6) http://doc.perl6.org/type/Version#plus Returns True if comparisons against this version allow larger versions too. method plus(Version:D:) returns Bool:D
-Mu.Bool (Perl 6) http://doc.perl6.org/type/Mu#Bool Returns False on the type object, and True otherwise. multi sub Bool(Mu) returns Bool:D\nmulti method Bool() returns Bool:D
-List.Bool (Perl 6) http://doc.perl6.org/type/List#Bool Returns True if the list has at least one element, and False for the empty list. multi method Bool(List:D:) returns Bool:D
-Buf.Bool (Perl 6) http://doc.perl6.org/type/Buf#Bool Returns False if and only if the buffer is empty. multi method Bool(Buf:D:)
-Numeric.Bool (Perl 6) http://doc.perl6.org/type/Numeric#Bool Returns False if the number is equivalent to zero, and True otherwise. multi method Bool(Numeric:D:)
-List.elems (Perl 6) http://doc.perl6.org/type/List#elems Returns the number of elements in the list. multi sub elems($list) returns Int:D\nmulti method elems(List:D:) returns Int:D
-Buf.elems (Perl 6) http://doc.perl6.org/type/Buf#elems Returns the number of elements of the buffer. multi method elems(Buf:D:) returns Int:D
-EnumMap.elems (Perl 6) http://doc.perl6.org/type/EnumMap#elems Returns the number of pairs stored in the EnumMap. method elems(EnumMap:D:) returns Int:D:
-Parameter.type (Perl 6) http://doc.perl6.org/type/Parameter#type Returns the nominal type constraint of the paramter.
-Exception.fail (Perl 6) http://doc.perl6.org/type/Exception#fail Same as fail $exception; i.e., it exits the calling Routine and returns the exception wrapped in a Failure object. method fail(Exception:D:)
-Date.days-in-month (Perl 6) http://doc.perl6.org/type/Date#days-in-month Returns the number of days in a month, where year and month default to that of the invocant. If both year and month are provided, it can be called as a class method. method days-in-month(year = self.year, month = self.month) returns Int:D
-Date.prev (Perl 6) http://doc.perl6.org/type/Date#prev Returns the previous day method prev(Date:D:) return Date:D
-Int.chr (Perl 6) http://doc.perl6.org/type/Int#chr Returns a one-character string, by interpreting the integer as a Unicode codepoint number and converting it the corresponding character. multi sub chr(Int:D ) returns Str:D\nmulti method chr(Int:D:) returns Str:D
-List.roll (Perl 6) http://doc.perl6.org/type/List#roll Returns a lazy list of $count elements, each randomly selected from the list. Each random choice is made indepently, like a separate die roll where each die face is a list element. multi method roll(List:D: $count = 1)
-Any.any (Perl 6) http://doc.perl6.org/type/Any#any Interprets the invocant as a list and creates an any-Junction from it.
-Numeric.conj (Perl 6) http://doc.perl6.org/type/Numeric#conj Returns the complex conjugate of the number. Returns the number itself for real numbers. multi method conj(Numeric:D) returns Numeric:D
-Mu.Str (Perl 6) http://doc.perl6.org/type/Mu#Str Returns a string representation of the invocant, intended to be machine readable. multi method Str() returns Str
-List.Str (Perl 6) http://doc.perl6.org/type/List#Str Stringifies the elements of the list and joins them with spaces (same as .join(' ')). multi method Str(List:D:) returns Str:D
-Backtrace.Str (Perl 6) http://doc.perl6.org/type/Backtrace#Str Returns a concise string representation of the backtrace, omitting routines marked as is hidden_from_backtrace, and at the discretion of the implementor, also some routines from the setting. multi method Str(Backtrace:D:) returns Str:D:
-Code.Str (Perl 6) http://doc.perl6.org/type/Code#Str Returns the name of the code object. multi method Str(Code:D:) returns Str:D
-Date.Str (Perl 6) http://doc.perl6.org/type/Date#Str Returns the date in YYYY-MM-DD format (ISO 8601) multi method Str(Date:D:) returns Str:D
-Match.Str (Perl 6) http://doc.perl6.org/type/Match#Str Returns the matched text.
-Range.bounds (Perl 6) http://doc.perl6.org/type/Range#bounds Returns a list consisting of the start and end point. method bounds(Range:D:) returns Positional
-Rational.denominator (Perl 6) http://doc.perl6.org/type/Rational#denominator Returns the denominator. method denominator(Rational:D:) returns DenomT:D
-IO.accessed (Perl 6) http://doc.perl6.org/type/IO#accessed Timestamp when the file was last accessed. "path/to/file".IO.accessed()
-Match.postmatch (Perl 6) http://doc.perl6.org/type/Match#postmatch Returns the part of the original string following the match.
-Str.fc (Perl 6) http://doc.perl6.org/type/Str#fc Does a Unicode "fold case" operation suitable for doing caseless string comparisons. (In general, the returned string is unlikely to be useful for any purpose other than comparison.) multi sub fc(Str:D ) returns Str:D\nmulti method fc(Str:D:) returns Str:D
-Code.count (Perl 6) http://doc.perl6.org/type/Code#count Returns the maximum number of positional arguments that may be passed when calling the code object. For code objects that can accept any number of positional arguments (that is, they have a slurpy parameter), count will return Inf. Named parameters do not contribute. method count(Code:D:) returns Real:D
-Signature.count (Perl 6) http://doc.perl6.org/type/Signature#count Returns the maximal number of positional arguments which can be bound to the signature. Returns Inf if there is a slurpy positional parameter. method count(Signature:D:) returns Real:D
-Str.length (Perl 6) http://doc.perl6.org/type/Str#length Perl 6 does not have a length function. See X<chars> or X<elems>.
-Parameter.default (Perl 6) http://doc.perl6.org/type/Parameter#default Returns a closure that upon invocation returns the default value for this parameter, or Any if no default was provided.
-Backtrace::Frame.subname (Perl 6) http://doc.perl6.org/type/Backtrace%3A%3AFrame#subname Returns the name of the enclosing subroutine. method subname(Backtrace::Frame:D) returns Str
-Str.split (Perl 6) http://doc.perl6.org/type/Str#split Splits a string up into pieces based on delimiters found in the string. multi sub split( Str:D $delimiter, Str:D $input, $limit = Inf, :$all) returns Positional\nmulti sub split(Regex:D $delimiter, Str:D $input, $limit = Inf, :$all) returns Positional
-List.values (Perl 6) http://doc.perl6.org/type/List#values Returns a copy of the list. multi sub values($list) returns List:D\nmulti method values(List:D:) returns List:D
-EnumMap.values (Perl 6) http://doc.perl6.org/type/EnumMap#values Returns a list of all values in the EnumMap. method values(EnumMap:D:) returns List:D
-Exception.backtrace (Perl 6) http://doc.perl6.org/type/Exception#backtrace Returns the backtrace associated with the exception. Only makes sense on exceptions that have been thrown at least once. method backtrace(Exception:D:) returns Backtrace:D
-List.kv (Perl 6) http://doc.perl6.org/type/List#kv Returns an interleaved list of indexes and values. For example multi sub kv($list) returns List:D\nmulti method kv(List:D:) returns List:D
-EnumMap.kv (Perl 6) http://doc.perl6.org/type/EnumMap#kv Returns a list of keys and values interleaved. method kv(EnumMap:D:) returns List:D
-Pair.kv (Perl 6) http://doc.perl6.org/type/Pair#kv Returns a two-element Parcel with the key and value parts o Pair, in that order. This method is a special case of the same-named method on Hash, which returns all its entries as a list of keys and values. multi method kv(Pair:D:) returns Parcel:D
-Str.chop (Perl 6) http://doc.perl6.org/type/Str#chop Returns the string with one character removed from the end. multi sub chop(Str:D) returns Str:D\nmulti method chop(Str:D:) returns Str:D
-List.reverse (Perl 6) http://doc.perl6.org/type/List#reverse Returns a list with the same elements in reverse order. multi sub reverse(*@list ) returns List:D\nmulti method reverse(List:D:) returns List:D
-Str.sprintf (Perl 6) http://doc.perl6.org/type/Str#sprintf This function is mostly identical to the C library sprintf function. multi sub sprintf ( Str:D $format, *@args) returns Str:D
-Real.ceiling (Perl 6) http://doc.perl6.org/type/Real#ceiling Returns the smallest integer not less than the number. method ceiling(Real:D) returns Int:D
-Code.arity (Perl 6) http://doc.perl6.org/type/Code#arity Returns the minimum number of positional arguments that must be passed in order to call the code object. Any optional or slurpy parameters in the code object's Signature do not contribute, nor do named parameters. method arity(Code:D:) returns Int:D
-Signature.arity (Perl 6) http://doc.perl6.org/type/Signature#arity Returns the minimal number of positional arguments required to satisfy the signature. method arity(Signature:D:) returns Int:D
-Pair.fmt (Perl 6) http://doc.perl6.org/type/Pair#fmt Takes a format string, and returns a string the key and value parts of the Pair formatted. Here's an example: multi method fmt(Pair:D:) returns Str:D
-Real.base (Perl 6) http://doc.perl6.org/type/Real#base Converts the number to a string, using $base as base. For $base larger than ten, capital latin letters are used. method base(Real:D: Int:D $base where 2..36) returns Str:D
-Date.day-of-month (Perl 6) http://doc.perl6.org/type/Date#day-of-month Returns the day of the month of the date (1..31). Synonymous to the day method. method day-of-month(Date:D:) returns Int:D
-Numeric.log10 (Perl 6) http://doc.perl6.org/type/Numeric#log10 Calculates the logarithm to base 10. multi sub log10(Numeric:D ) returns Numeric:D\nmulti method log10(Numeric:D:) returns Numeric:D
-Real.sign (Perl 6) http://doc.perl6.org/type/Real#sign Returns -1 if the number is negative, 0 if it is zero and 1 otherwise. method sign(Real:D:)
-Rational.norm (Perl 6) http://doc.perl6.org/type/Rational#norm Returns a normalized Rational object, ie with positive denominator, and numerator and denominator coprime. method norm(Rational:D:) returns Rational:D
-Enum.invert (Perl 6) http://doc.perl6.org/type/Enum#invert Returns a new Enum with the original enum's value as the key, and the original enum's key as value. multi method invert(Enum:D:) returns Enum:D
-EnumMap.invert (Perl 6) http://doc.perl6.org/type/EnumMap#invert Returns a list of pairs, but with key and value exchanged. method invert(EnumMap:D:) returns List:D
-IO.dir (Perl 6) http://doc.perl6.org/type/IO#dir Returns a list of IO::File and IO::Dir objects for the files and directories found in the $path. If $path is not given assumes the current directory. sub dir Cool $path = '.', Mu :$test = none('.', '..')
-Parameter.type_captures (Perl 6) http://doc.perl6.org/type/Parameter#type_captures Returns a list of variable names of type captures associated with this parameter. sub a(::T ::U $x) { }\nsay &a.signature.params[0].type_captures; # T U
-Complex.re (Perl 6) http://doc.perl6.org/type/Complex#re Returns the real part of the complex number. method re(Complex:D:) returns Real:D
-Match.list (Perl 6) http://doc.perl6.org/type/Match#list Returns a list of positional submatches.
-Range.list (Perl 6) http://doc.perl6.org/type/Range#list Generates the list of elements that the range represents. method list(Range:D:) returns List:D
-Str.trim (Perl 6) http://doc.perl6.org/type/Str#trim Remove leading and trailing white-spces. It can be use both as a method on strings and as a function. When used as a method it will return the trimmed string. In order to do in-place trimming, once needs to write .=trim method trim(Str:D:) returns Str
-Backtrace::Frame.code (Perl 6) http://doc.perl6.org/type/Backtrace%3A%3AFrame#code Returns the code object into which .file and .line point, if avaialble. method code(Backtrace::Frame:D)
-Numeric.Num (Perl 6) http://doc.perl6.org/type/Numeric#Num If this Numeric is equivalent to a Real, return that Real as a Num as accurately as is possible. Fail with X::Numeric::Real otherwise. method Num(Numeric:D:) returns Num:D
-Grammar.parsefile (Perl 6) http://doc.perl6.org/type/Grammar#parsefile Matches the grammar against the contents of file $fielname, using $rule as start rule, optionally applying $actions as actions object. method parsefile(Grammar:D: $filename, :$rule = 'TOP', :$actions) returns Match:D
-List.map (Perl 6) http://doc.perl6.org/type/List#map Invokes &code for each element and gathers the return values in another list and returns it. This happens lazily, ie &code is only invoked when the return values are accessed. multi sub map(&code, *@elems) returns List:D\nmulti method map(List:D: &code) returns List:D
-Range.max (Perl 6) http://doc.perl6.org/type/Range#max Returns the end point of the range. method max(Range:D:)
-Parameter.invocant (Perl 6) http://doc.perl6.org/type/Parameter#invocant Returns True if the parameter is the invocant parameter.
-Match.make (Perl 6) http://doc.perl6.org/type/Match#make Sets the AST to $ast, and returns it. method make(Match:D: Mu $ast)
-Mu.CREATE (Perl 6) http://doc.perl6.org/type/Mu#CREATE Allocates a new object of the same type as the invocant, without initializating any attributes. method CREATE() returns Mu:D
-Real.round (Perl 6) http://doc.perl6.org/type/Real#round Rounds the number to scale $scale. If $scale is 1, rounds to an integer. If scale is 0.1, rounds to one digit after the comma etc. method round(Real:D: $scale = 1)
-Positional.of (Perl 6) http://doc.perl6.org/type/Positional#of Returns the type constraint for elements of the positional container. Defaults to Mu. method of()
-List.push (Perl 6) http://doc.perl6.org/type/List#push Adds the @values to the end of the list, and returns the modified list. Fails for infinite lists. multi sub push(List:D, *@values) returns List:D\nmulti method push(List:D: *@values) returns List:D
-Hash.push (Perl 6) http://doc.perl6.org/type/Hash#push Adds the @new elements to the hash with the same semantics as hash assignment, but with three exceptions: multi method push(Hash:D: *@new)
-Parameter.copy (Perl 6) http://doc.perl6.org/type/Parameter#copy Returns True for is copy parameters.
-Any.one (Perl 6) http://doc.perl6.org/type/Any#one Interprets the invocant as a list and creates an one-Junction from it.
-List.Int (Perl 6) http://doc.perl6.org/type/List#Int Returns the number of elements in the list (same as .elems). multi method Int(List:D:) return Int:D
-Numeric.Int (Perl 6) http://doc.perl6.org/type/Numeric#Int If this Numeric is equivalent to a Real, return the equivalent of calling truncate on that Real to get an Int. Fail with X::Numeric::Real otherwise. method Int(Numeric:D:) returns Int:D
-Exception.throw (Perl 6) http://doc.perl6.org/type/Exception#throw Throws the exception. method throw(Exception:D:)
-Any.all (Perl 6) http://doc.perl6.org/type/Any#all Interprets the invocant as a list and creates an all-Junction from it.
-Backtrace::Frame.file (Perl 6) http://doc.perl6.org/type/Backtrace%3A%3AFrame#file Returns the file name. method file(Backtrace::Frame:D) returns Str
-Str.index (Perl 6) http://doc.perl6.org/type/Str#index Searches for $needle in the string starting from $startpos. It returns the offset into the string where $needle was found, and an undefined value if it was not found. multi sub index(Str:D, Str:D $needle, Int $startpos = 0) returns StrPos\nmulti method index(Str:D: Str:D $needle, Int $startpos = 0) returns StrPos
-Str.ords (Perl 6) http://doc.perl6.org/type/Str#ords Returns a list of codepoint numbers, one for each character in the string. multi method ords(Str:D:) returns Positional
-Real.truncate (Perl 6) http://doc.perl6.org/type/Real#truncate Rounds the number towards zero. method truncate(Real:D) returns Int:D
-IO.prompt (Perl 6) http://doc.perl6.org/type/IO#prompt Prints out a string to the standard output and waits for the user to type in something and finish with an ENTER. Returns the string typed in without the trailing newline. my $name = prompt("Hi, what's your name?");
-Date.day-of-week (Perl 6) http://doc.perl6.org/type/Date#day-of-week Returns the day of the week, where 0 is Sunday, 1 is Monday etc. method day-of-week(Date:D:) returns Int:D
-Real.rand (Perl 6) http://doc.perl6.org/type/Real#rand Returns a pseudo-random number between zero and the number. sub term:<rand> returns Num:D\nmethod rand(Real:D:) returns Real:D
-Str.uc (Perl 6) http://doc.perl6.org/type/Str#uc Returns an uppercase version of the string. multi sub uc(Str:D ) returns Str:D\nmulti method uc(Str:D:) returns Str:D
-Any.none (Perl 6) http://doc.perl6.org/type/Any#none Interprets the invocant as a list and creates an none-Junction from it.
-Exception.rethrow (Perl 6) http://doc.perl6.org/type/Exception#rethrow Rethrows an exception that has already been thrown at least once. This is different from throw in that it preserves the original backtrace. method rethrow(Exception:D:)
-List.pick (Perl 6) http://doc.perl6.org/type/List#pick Returns $count elements chosen at random and without repetition from the invocant. If * is passed as $count, all elements from the invocant list are returned in a random sequence. multi method pick(List:D: $count = 1)
-Str.substr (Perl 6) http://doc.perl6.org/type/Str#substr Returns a part of the string, starting from the character with index $from (where the first character has index 0) and with length $chars. multi sub substr(Str:D $s, Int:D $from, Int:D $chars = $s.chars - $from) returns Str:D\nmulti method substr(Str:D $s: Int:D $from, Int:D $chars = $s.chars - $from) returns Str:D
-Numeric.pred (Perl 6) http://doc.perl6.org/type/Numeric#pred Returns the number decremented by one (predecessor). method pred(Numerid:D:)
-Str.pred (Perl 6) http://doc.perl6.org/type/Str#pred Returns the string decremented by one. method pred(Str:D:) returns Str:D
-Str.trim-leading (Perl 6) http://doc.perl6.org/type/Str#trim-leading Remove the white-space charecters from the beginning of a string. See also trim.
-List.eager (Perl 6) http://doc.perl6.org/type/List#eager Evaluates all elements in the list eagerly, and returns the invocant. If a List signals that it is "known infinite", eager evaluation may stop at the point where the infinity is detected. multi method eager(List:D:) returns List:D
-List.keys (Perl 6) http://doc.perl6.org/type/List#keys Returns a list of indexes into the list (i.e., 0..(@list.elems-1)). multi sub keys($list) returns List:D\nmulti method keys(List:D:) returns List:D
-EnumMap.keys (Perl 6) http://doc.perl6.org/type/EnumMap#keys Returns a list of all keys in the EnumMap. method keys(EnumMap:D:) returns List:D
-Date.truncated-to (Perl 6) http://doc.perl6.org/type/Date#truncated-to Returns a Date truncated to the first day of its year, month or week. For example method truncated-to(Date:D: :$year, :$month, :$week)
-List.pop (Perl 6) http://doc.perl6.org/type/List#pop Removes and returns the last item from the list, fails for an empty list. multi sub pop(List:D )\nmulti method pop(List:D:)
-Complex.im (Perl 6) http://doc.perl6.org/type/Complex#im Returns the imaginary part of the complex number. method im(Complex:D:) returns Real:D
-Bool.prefix:<?> (Perl 6) http://doc.perl6.org/type/Bool#prefix%3A%3C%3F%3E Coerces its argument to Bool. multi sub prefix:<?>(Mu) returns Bool:D
-List.unshift (Perl 6) http://doc.perl6.org/type/List#unshift Adds the @values to the start of the list, and returns the modified list. Fails if @values is infinite. multi sub unshift(List:D, *@values) returns List:D\nmulti method unshift(List:D: *@values) returns List:D
-Str.tcuc (Perl 6) http://doc.perl6.org/type/Str#tcuc Turns the first character to title case, and all other characters to upper case multi sub tcuc(Str:D ) returns Str:D\nmulti method tcuc(Str:D:) returns Str:D
-Str.comb (Perl 6) http://doc.perl6.org/type/Str#comb Searches for $matcher in $input and returns a list of all matches (as Str by default, or as Match if $match is True), limited to at most $limit matches. multi sub comb(Str:D $matcher, Str:D $input, $limit = Inf, Bool :$match) \nmulti sub comb(Regex:D $matcher, Str:D $input, $limit = Inf, Bool :$match) \nmulti method comb(Str:D $input:)\nmulti method comb(Str:D $input: Str:D $matcher, $limit = Inf, Bool :$match) \nmulti method comb(Str:D $input: Regex:D $matcher, $limit = Inf, Bool :$match)
-Exception.message (Perl 6) http://doc.perl6.org/type/Exception#message This is a stub that must be overwritten by subclasses, and should return the exception message. method message(Exception:D:) returns Str:D
-Backtrace::Frame.line (Perl 6) http://doc.perl6.org/type/Backtrace%3A%3AFrame#line Returns the line number (line numbers start to count from 1). method line(Backtrace::Frame:D) returns Int
-Real.floor (Perl 6) http://doc.perl6.org/type/Real#floor Return the largest integer not greater than the number. method floor(Real:D) returns Int:D
-Backtrace::Frame.is-routine (Perl 6) http://doc.perl6.org/type/Backtrace%3A%3AFrame#is-routine Return True if the frame point into a routine (and not into a mere Block). method is-routine(Backtrace::Frame:D) return Bool:D
-Numeric.Rat (Perl 6) http://doc.perl6.org/type/Numeric#Rat If this Numeric is equivalent to a Real, return a Rat which is within $epsilon of that Real's value. Fail with X::Numeric::Real otherwise. method Rat(Numeric:D: Real $epsilon = 1.0e-6) returns Rat:D
-Real.Rat (Perl 6) http://doc.perl6.org/type/Real#Rat Converts the number to a Rat with the precision $epsilon. method Rat(Real:D: Real $epsilon = 1e-6)
-Parameter.named (Perl 6) http://doc.perl6.org/type/Parameter#named Returns True if it's a named parameter.
-List.rotate (Perl 6) http://doc.perl6.org/type/List#rotate Returns the list rotated by $n elements. multi sub rotate(@list, Int:D $n = 1) returns List:D\nmulti method rotate(List:D: Int:D $n = 1) returns List:D
-Date.day (Perl 6) http://doc.perl6.org/type/Date#day Returns the day of the month of the date (1..31) method day(Date:D:) returns Int:D
-Parameter.name (Perl 6) http://doc.perl6.org/type/Parameter#name Returns the variable name.
-X::AdHoc.payload (Perl 6) http://doc.perl6.org/type/X%3A%3AAdHoc#payload Returns the original object which was passed to die. method payload(X::AdHoc:D)
-Parameter.optional (Perl 6) http://doc.perl6.org/type/Parameter#optional Returns True for optional parameters.
-Backtrace::Frame.is-hidden (Perl 6) http://doc.perl6.org/type/Backtrace%3A%3AFrame#is-hidden Returns True if the frame is marked as hidden with the is hidden_from_backtrace trait. method is-hidden(Backtrace::Frame:D) return Bool:D
-Str.words (Perl 6) http://doc.perl6.org/type/Str#words Returns a list of non-whitespace bits, i.e. the same as a call to $input.comb( / \S+ /, $limit ) would. multi sub words(Str:D $input, $limit = Inf) returns Positional\nmulti method words(Str:D $input: $limit = Inf) returns Positional
-Match.from (Perl 6) http://doc.perl6.org/type/Match#from Returns the index of the starting position of the match.
-Numeric.succ (Perl 6) http://doc.perl6.org/type/Numeric#succ Returns the number incremented by one (successor). method succ(Numerid:D:)
-Date.succ (Perl 6) http://doc.perl6.org/type/Date#succ Returns the following day method succ(Date:D:) returns Date:D
-Str.succ (Perl 6) http://doc.perl6.org/type/Str#succ Returns the string incremented by one. method succ(Str:D) returns Str:D
-Mu.clone (Perl 6) http://doc.perl6.org/type/Mu#clone Creates a shallow clone of the invocant. If named arguments are passed to it, their values are used in every place where an attribute name matches the name of a named argument. method clone(*%twiddles)
-Match.caps (Perl 6) http://doc.perl6.org/type/Match#caps Returns a list of pairs, with the index or submatch name as key and the submatches as values. The list is ordered by starting position of the submatches.
-List.splice (Perl 6) http://doc.perl6.org/type/List#splice Deletes $elems elements starting from index $start from the list, returns them and replaces them by @replacement. If $elems is omitted, all the elements starting from index $start are deleted. multi sub splice(@list, $start, $elems? *@replacement) returns List:D\nmulti method splice(List:D: $start, $elems? *@replacement) returns List:D
-IO.changed (Perl 6) http://doc.perl6.org/type/IO#changed Timestamp when the inode was last changed. "path/to/file".IO.changed()
-Date.today (Perl 6) http://doc.perl6.org/type/Date#today Returns a Date object for the current day. method today() returns Date:D
-Str.flip (Perl 6) http://doc.perl6.org/type/Str#flip Returns the string reversed character by character. multi sub flip(Str:D ) returns Str:D\nmulti method flip(Str:D:) returns Str:D
-Range.flat (Perl 6) http://doc.perl6.org/type/Range#flat Generates the list of elements that the range represents. method flat(Range:D:) returns List:D
-Str.rindex (Perl 6) http://doc.perl6.org/type/Str#rindex Returns the last position of $needle in $haystack not after $startpos. Returns an undefined value if $needle wasn't found. multi sub rindex(Str:D $haystack, Str:D $needle, Int $startpos = $haystack.chars) returns StrPos\nmulti method rindex(Str:D $haystack: Str:D $needle, Int $startpos = $haystack.chars) returns StrPos
-Code.signature (Perl 6) http://doc.perl6.org/type/Code#signature Returns the Signature object for this code object, which describes its parameters. multi method signature(Code:D:) returns Signature:D
-Rational.nude (Perl 6) http://doc.perl6.org/type/Rational#nude Returns a list of the numerator and denominator. method nude(Rational:D:) returns Positional
-Str.lcfirst (Perl 6) http://doc.perl6.org/type/Str#lcfirst Perl 6 does not have a lcfirst function.
-Parameter.constraints (Perl 6) http://doc.perl6.org/type/Parameter#constraints Returns additional constraints on the parameter (usually as an all-Junction).
-Match.orig (Perl 6) http://doc.perl6.org/type/Match#orig Returns the original string that the regex was matched against.
-List.first (Perl 6) http://doc.perl6.org/type/List#first Returns the first item of the list which smart-matches against $matcher. multi sub first(Mu $matcher, *@elems)\nmulti method first(List:D: Mu $matcher)
-Buf.decode (Perl 6) http://doc.perl6.org/type/Buf#decode Applies an encoding to turn the buffer into a Str. multi method decode(Buf:D: Str:D $encoding = 'UTF-8') returns Str:D
-Match.chunks (Perl 6) http://doc.perl6.org/type/Match#chunks Returns a list of pairs, with the index or submatch name as key and the submatches as values. The list is ordered by starting position of the submatches.
-Signature.params (Perl 6) http://doc.perl6.org/type/Signature#params Returns the list of Parameter objects that make up the signature. method params(Signature:D:) returns Positional
-Parameter.parcel (Perl 6) http://doc.perl6.org/type/Parameter#parcel Returns True for parcel parameters. sub f(\$parcel) {\n $parcel = 5;\n}\nf(my $x); # works\nf(42); # dies in the assignment
-Numeric.log (Perl 6) http://doc.perl6.org/type/Numeric#log Calculates the logarithm to base $base. Defaults to the natural logarithm. multi sub log(Numeric:D, Numeric $base = e) returns Numeric:D\nmulti method log(Numeric:D: Numeric $base = e) returns Numeric:D
-Int.div (Perl 6) http://doc.perl6.org/type/Int#div Does an integer division, rounded down. multi sub infix:<div>(Int:D, Int:D) returns Int:D
-Str.lines (Perl 6) http://doc.perl6.org/type/Str#lines Returns a list of lines (without trailing newline characters), i.e. the same as a call to $input.comb( / ^^ \N* /, $limit ) would. multi sub lines(Str:D $input, $limit = Inf) returns Positional\nmulti method lines(Str:D $input: $limit = Inf) returns Positional
-Mu.new (Perl 6) http://doc.perl6.org/type/Mu#new Default method for constructing (create + initialize) new objects of a class. This method expects only named arguments which are then used to initialize attributes with accessors of the same name. multi method new(*%attrinit)
-Backtrace.new (Perl 6) http://doc.perl6.org/type/Backtrace#new Creates a new backtrace, using its calling location as the origin of the backtrace. proto method new(*@, *%) {*}\nmulti method new()
-Buf.new (Perl 6) http://doc.perl6.org/type/Buf#new Creates a Buf from a list of integers. method new(*@codes)
-Complex.new (Perl 6) http://doc.perl6.org/type/Complex#new Creates a new Complex object from real and imaginary parts. proto method new(*@, *%) {*} returns Complex:D\nmulti method new(Real $re, Real $im) returns Complex:D
-Date.new (Perl 6) http://doc.perl6.org/type/Date#new Creates a new Date object, either from a tripple of (year, month, day) integers, or from a string of the form YYYY-MM-DD (ISO 8601), or from a DateTime object. proto method new() {*}\nmulti method new($year, $month, $day) returns Date:D\nmulti method new(:$year, :$month, :$day) returns Date:D\nmulti method new(Str $date) returns Date:D\nmulti method new(DateTime:D $dt) returns Date:D
-EnumMap.new (Perl 6) http://doc.perl6.org/type/EnumMap#new Creates a new EnumMap from a list of alternating keys and values, with the same semantics as described for hash assigning in the Hash documentation. proto method new(*@, *%) {*}\nmulti method new(*@args, *%pairs)
-Rational.new (Perl 6) http://doc.perl6.org/type/Rational#new Creates a new rational object from numerator and denominator. method new(NuT:D $numerator, DenomT:D $denominator) returns Rational:D
-Version.new (Perl 6) http://doc.perl6.org/type/Version#new Creates a Version from a string $s. The string is combed for the numeric, alphabetic, and wildcard components of the version object. Any characters other than alphanumerics and asterisks are assumed to be equivalent to a dot. A dot is also assumed between any adjacent numeric and alphabetic characters. method new(Str:d $s)
-Parameter.named_names (Perl 6) http://doc.perl6.org/type/Parameter#named_names Returns a list of names/aliases for this parameter.
-List.grep (Perl 6) http://doc.perl6.org/type/List#grep Returns a lazy list of elements against which $matcher smart-matches. The elements are returned in the order in which they appear in the original list. multi sub grep(Mu $matcher, *@elems) returns List:D\nmulti method grep(List:D: Mu $matcher) returns List:D
-List.join (Perl 6) http://doc.perl6.org/type/List#join Treats the elements of the list as strings, interleaves them with $separator and concatenates everything into a single string. multi sub join($separator, *@list) returns Str:D\nmulti method join(List:D: $separator) returns Str:D
-List.reduce (Perl 6) http://doc.perl6.org/type/List#reduce Applies &with to the first and the second value of the list, then to the result of that calculation and the third value and so on. Returns a single item generated that way. multi sub reduce(&with, *@elems)\nmulti method reduce(List:D: &with)
-Enum.key (Perl 6) http://doc.perl6.org/type/Enum#key Returns the key part of the Enum. multi method key(Enum:D:)
-Range.excludes_min (Perl 6) http://doc.perl6.org/type/Range#excludes_min Returns True if the start point is excluded from the range, and False otherwise. method excludes_min(Range:D:) returns Bool:D
-List.classify (Perl 6) http://doc.perl6.org/type/List#classify classify transforms a list or array of values into a hash representing the classification of those values according to a mapper; each hash key represents the classification for one or more of the incoming list values, and the corresponding hash value contains an array of those list values classified by the mapper into the category of the associated key. For example: multi sub classify(&mapper, *@values) returns Hash:D\nmulti method classify(List:D: &mapper) returns Hash:D
-Numeric.roots (Perl 6) http://doc.perl6.org/type/Numeric#roots Returns a list of the $n complex roots, which evaluate to the original number when raised to the $nth power. multi method roots(Numeric:D: Int:D $n) returns Positional
-Parameter.capture (Perl 6) http://doc.perl6.org/type/Parameter#capture Returns True for parameters that capture the rest of the argument list. sub f(\capture) { }
-Date.month (Perl 6) http://doc.perl6.org/type/Date#month Returns the month of the date (1..12) method month(Date:D:) returns Int:D
+Numeric.conj A Perl 6 Numeric <pre><code>multi method conj(Numeric:D) returns Numeric:D</pre></code>Returns the complex conjugate of the number. Returns the number itself for real numbers. http://doc.perl6.org/type/Numeric#conj
+conj R Numeric.conj
+Match.postmatch A Perl 6 Match Returns the part of the original string following the match. http://doc.perl6.org/type/Match#postmatch
+postmatch R Match.postmatch
+Numeric.sqrt A Perl 6 Numeric <pre><code>mulit sub sqrt(Numeric:D) returns Numeric:D&#10;mulit method sqrt(Numeric:D) returns Numeric:D</pre></code>Returns a square root of the number. For real numbers the positive square root is returned. http://doc.perl6.org/type/Numeric#sqrt
+sqrt R Numeric.sqrt
+Real.floor A Perl 6 Real <pre><code>method floor(Real:D) returns Int:D</pre></code>Return the largest integer not greater than the number. http://doc.perl6.org/type/Real#floor
+floor R Real.floor
+Backtrace::Frame.file A Perl 6 Backtrace::Frame <pre><code>method file(Backtrace::Frame:D) returns Str</pre></code>Returns the file name. http://doc.perl6.org/type/Backtrace%3A%3AFrame#file
+file R Backtrace::Frame.file
+Str.encode A Perl 6 Str <pre><code>multi method encode(Str:D: $encoding = $?ENC, $nf = $?NF) returns Buf</pre></code>Returns a Buf which represents the original string in the given encoding and normal form. The actual return type is as specific as possible, so $str.encode('UTF-8') returns a utf8 object, $str.encode('ISO-8859-1') a buf8. http://doc.perl6.org/type/Str#encode
+encode R Str.encode
+Mu.print A Perl 6 Mu <pre><code>multi method print() returns Bool:D</pre></code>Prints value to $*OUT after stringification using .Str method without newline at end. http://doc.perl6.org/type/Mu#print
+print R Mu.print
+Enum.key A Perl 6 Enum <pre><code>multi method key(Enum:D:)</pre></code>Returns the key part of the Enum. http://doc.perl6.org/type/Enum#key
+key R Enum.key
+Str.chop A Perl 6 Str <pre><code>multi sub chop(Str:D) returns Str:D&#10;multi method chop(Str:D:) returns Str:D</pre></code>Returns the string with one character removed from the end. http://doc.perl6.org/type/Str#chop
+chop R Str.chop
+Str.fc A Perl 6 Str <pre><code>multi sub fc(Str:D ) returns Str:D&#10;multi method fc(Str:D:) returns Str:D </pre></code>Does a Unicode "fold case" operation suitable for doing caseless string comparisons. (In general, the returned string is unlikely to be useful for any purpose other than comparison.) http://doc.perl6.org/type/Str#fc
+fc R Str.fc
+Backtrace::Frame.code A Perl 6 Backtrace::Frame <pre><code>method code(Backtrace::Frame:D)</pre></code>Returns the code object into which .file and .line point, if avaialble. http://doc.perl6.org/type/Backtrace%3A%3AFrame#code
+code R Backtrace::Frame.code
+Parameter.rw A Perl 6 Parameter Returns True for is rw parameters. http://doc.perl6.org/type/Parameter#rw
+rw R Parameter.rw
+Match.prematch A Perl 6 Match Returns the part of the original string leading up to the match. http://doc.perl6.org/type/Match#prematch
+prematch R Match.prematch
+Code.count A Perl 6 Code <pre><code>method count(Code:D:) returns Real:D</pre></code>Returns the maximum number of positional arguments that may be passed when calling the code object. For code objects that can accept any number of positional arguments (that is, they have a slurpy parameter), count will return Inf. Named parameters do not contribute. http://doc.perl6.org/type/Code#count
+Signature.count A Perl 6 Signature <pre><code>method count(Signature:D:) returns Real:D</pre></code>Returns the maximal number of positional arguments which can be bound to the signature. Returns Inf if there is a slurpy positional parameter. http://doc.perl6.org/type/Signature#count
+count D [[Code.count]]\n[[Signature.count]]
+Str.trim A Perl 6 Str <pre><code>method trim(Str:D:) returns Str</pre></code>Remove leading and trailing white-spces. It can be use both as a method on strings and as a function. When used as a method it will return the trimmed string. In order to do in-place trimming, once needs to write .=trim http://doc.perl6.org/type/Str#trim
+trim R Str.trim
+Exception.fail A Perl 6 Exception <pre><code>method fail(Exception:D:)</pre></code>Same as fail $exception; i.e., it exits the calling Routine and returns the exception wrapped in a Failure object. http://doc.perl6.org/type/Exception#fail
+fail R Exception.fail
+Complex.isNaN A Perl 6 Complex <pre><code>method isNaN(Complex:D:) returns Bool:D</pre></code>Returns true if the real or imaginary part is NaN (not a number). http://doc.perl6.org/type/Complex#isNaN
+isNaN R Complex.isNaN
+Date.truncated-to A Perl 6 Date <pre><code>method truncated-to(Date:D: :$year, :$month, :$week)</pre></code>Returns a Date truncated to the first day of its year, month or week. For example http://doc.perl6.org/type/Date#truncated-to
+truncated-to R Date.truncated-to
+Mu.gist A Perl 6 Mu <pre><code>multi sub gist(Mu) returns Str&#10;multi method gist() returns Str</pre></code>Returns a string representation of the invocant, optimized for fast recognition by humans. http://doc.perl6.org/type/Mu#gist
+Date.gist A Perl 6 Date <pre><code>multi method gist(Date:D:) returns Str:D</pre></code>Returns the date in YYYY-MM-DD format (ISO 8601) http://doc.perl6.org/type/Date#gist
+Exception.gist A Perl 6 Exception <pre><code>multi method gist(Exception:D:)</pre></code>Returns whatever the exception printer should produce for this exception. The default implementation returns message and backtrace separated by a newline. http://doc.perl6.org/type/Exception#gist
+gist D [[Mu.gist]]\n[[Date.gist]]\n[[Exception.gist]]
+Parameter.name A Perl 6 Parameter Returns the variable name. http://doc.perl6.org/type/Parameter#name
+name R Parameter.name
+Range.excludes_min A Perl 6 Range <pre><code>method excludes_min(Range:D:) returns Bool:D</pre></code>Returns True if the start point is excluded from the range, and False otherwise. http://doc.perl6.org/type/Range#excludes_min
+excludes_min R Range.excludes_min
+IO.prompt A Perl 6 IO <pre><code>my $name = prompt("Hi, what's your name?");</pre></code>Prints out a string to the standard output and waits for the user to type in something and finish with an ENTER. Returns the string typed in without the trailing newline. http://doc.perl6.org/type/IO#prompt
+prompt R IO.prompt
+Str.tc A Perl 6 Str <pre><code>multi sub tc(Str:D ) returns Str:D&#10;multi method tc(Str:D:) returns Str:D</pre></code>Does a Unicode "titlecase" operation, that is changes the first character in the string to title case, or to upper case if the character has no title case mapping http://doc.perl6.org/type/Str#tc
+tc R Str.tc
+Match.hash A Perl 6 Match Returns a hash of named submatches. http://doc.perl6.org/type/Match#hash
+hash R Match.hash
+List.rotate A Perl 6 List <pre><code>multi sub rotate(@list, Int:D $n = 1) returns List:D&#10;multi method rotate(List:D: Int:D $n = 1) returns List:D</pre></code>Returns the list rotated by $n elements. http://doc.perl6.org/type/List#rotate
+rotate R List.rotate
+Date.is-leap-year A Perl 6 Date <pre><code>method is-leap-year($year = self.year) returns Bool:D</pre></code>Returns True if $year is a leap year. Can be called as a class method if the year is provided. http://doc.perl6.org/type/Date#is-leap-year
+is-leap-year R Date.is-leap-year
+Date.days-in-month A Perl 6 Date <pre><code>method days-in-month(year = self.year, month = self.month) returns Int:D</pre></code>Returns the number of days in a month, where year and month default to that of the invocant. If both year and month are provided, it can be called as a class method. http://doc.perl6.org/type/Date#days-in-month
+days-in-month R Date.days-in-month
+Str.chars A Perl 6 Str <pre><code>multi sub chars(Str:D ) returns Int:D&#10;multi method chars(Str:D:) returns Int:D</pre></code>Returns the number of characters in the string in the current (lexically scoped) idea of what a normal character is, usually graphemes. http://doc.perl6.org/type/Str#chars
+chars R Str.chars
+Str.rindex A Perl 6 Str <pre><code>multi sub rindex(Str:D $haystack, Str:D $needle, Int $startpos = $haystack.chars) returns StrPos&#10;multi method rindex(Str:D $haystack: Str:D $needle, Int $startpos = $haystack.chars) returns StrPos</pre></code>Returns the last position of $needle in $haystack not after $startpos. Returns an undefined value if $needle wasn't found. http://doc.perl6.org/type/Str#rindex
+rindex R Str.rindex
+Date.month A Perl 6 Date <pre><code>method month(Date:D:) returns Int:D</pre></code>Returns the month of the date (1..12) http://doc.perl6.org/type/Date#month
+month R Date.month
+Positional.of A Perl 6 Positional <pre><code>method of()</pre></code>Returns the type constraint for elements of the positional container. Defaults to Mu. http://doc.perl6.org/type/Positional#of
+of R Positional.of
+Rational.denominator A Perl 6 Rational <pre><code>method denominator(Rational:D:) returns DenomT:D</pre></code>Returns the denominator. http://doc.perl6.org/type/Rational#denominator
+denominator R Rational.denominator
+Parameter.slurpy A Perl 6 Parameter Returns True for slurpy parameters. http://doc.perl6.org/type/Parameter#slurpy
+slurpy R Parameter.slurpy
+Real.round A Perl 6 Real <pre><code>method round(Real:D: $scale = 1)</pre></code>Rounds the number to scale $scale. If $scale is 1, rounds to an integer. If scale is 0.1, rounds to one digit after the comma etc. http://doc.perl6.org/type/Real#round
+round R Real.round
+Backtrace::Frame.is-routine A Perl 6 Backtrace::Frame <pre><code>method is-routine(Backtrace::Frame:D) return Bool:D</pre></code>Return True if the frame point into a routine (and not into a mere Block). http://doc.perl6.org/type/Backtrace%3A%3AFrame#is-routine
+is-routine R Backtrace::Frame.is-routine
+Any.all A Perl 6 Any Interprets the invocant as a list and creates an all-Junction from it. http://doc.perl6.org/type/Any#all
+all R Any.all
+IO.dir A Perl 6 IO <pre><code>sub dir Cool $path = '.', Mu :$test = none('.', '..')</pre></code>Returns a list of IO::File and IO::Dir objects for the files and directories found in the $path. If $path is not given assumes the current directory. http://doc.perl6.org/type/IO#dir
+dir R IO.dir
+Buf.decode A Perl 6 Buf <pre><code>multi method decode(Buf:D: Str:D $encoding = 'UTF-8') returns Str:D</pre></code>Applies an encoding to turn the buffer into a Str. http://doc.perl6.org/type/Buf#decode
+decode R Buf.decode
+Parameter.parcel A Perl 6 Parameter <pre><code>sub f(\$parcel) {&#10; $parcel = 5;&#10;}&#10;f(my $x); # works&#10;f(42); # dies in the assignment</pre></code>Returns True for parcel parameters. http://doc.perl6.org/type/Parameter#parcel
+parcel R Parameter.parcel
+List.unshift A Perl 6 List <pre><code>multi sub unshift(List:D, *@values) returns List:D&#10;multi method unshift(List:D: *@values) returns List:D</pre></code>Adds the @values to the start of the list, and returns the modified list. Fails if @values is infinite. http://doc.perl6.org/type/List#unshift
+unshift R List.unshift
+Str.uc A Perl 6 Str <pre><code>multi sub uc(Str:D ) returns Str:D&#10;multi method uc(Str:D:) returns Str:D</pre></code>Returns an uppercase version of the string. http://doc.perl6.org/type/Str#uc
+uc R Str.uc
+Grammar.parsefile A Perl 6 Grammar <pre><code>method parsefile(Grammar:D: $filename, :$rule = 'TOP', :$actions) returns Match:D</pre></code>Matches the grammar against the contents of file $fielname, using $rule as start rule, optionally applying $actions as actions object. http://doc.perl6.org/type/Grammar#parsefile
+parsefile R Grammar.parsefile
+Parameter.type_captures A Perl 6 Parameter <pre><code>sub a(::T ::U $x) { }&#10;say &amp;a.signature.params[0].type_captures; # T U</pre></code>Returns a list of variable names of type captures associated with this parameter. http://doc.perl6.org/type/Parameter#type_captures
+type_captures R Parameter.type_captures
+List.reduce A Perl 6 List <pre><code>multi sub reduce(&amp;with, *@elems)&#10;multi method reduce(List:D: &amp;with)</pre></code>Applies &amp;with to the first and the second value of the list, then to the result of that calculation and the third value and so on. Returns a single item generated that way. http://doc.perl6.org/type/List#reduce
+reduce R List.reduce
+Exception.throw A Perl 6 Exception <pre><code>method throw(Exception:D:)</pre></code>Throws the exception. http://doc.perl6.org/type/Exception#throw
+throw R Exception.throw
+Code.arity A Perl 6 Code <pre><code>method arity(Code:D:) returns Int:D</pre></code>Returns the minimum number of positional arguments that must be passed in order to call the code object. Any optional or slurpy parameters in the code object's Signature do not contribute, nor do named parameters. http://doc.perl6.org/type/Code#arity
+Signature.arity A Perl 6 Signature <pre><code>method arity(Signature:D:) returns Int:D</pre></code>Returns the minimal number of positional arguments required to satisfy the signature. http://doc.perl6.org/type/Signature#arity
+arity D [[Code.arity]]\n[[Signature.arity]]
+Str.ord A Perl 6 Str <pre><code>multi sub ord (Str:D) returns Int:D&#10;multi method ord(Str:D:) returns Int:D</pre></code>Returns the codepoint number of the first character of the string http://doc.perl6.org/type/Str#ord
+ord R Str.ord
+Real.truncate A Perl 6 Real <pre><code>method truncate(Real:D) returns Int:D</pre></code>Rounds the number towards zero. http://doc.perl6.org/type/Real#truncate
+truncate R Real.truncate
+Mu.Str A Perl 6 Mu <pre><code>multi method Str() returns Str</pre></code>Returns a string representation of the invocant, intended to be machine readable. http://doc.perl6.org/type/Mu#Str
+List.Str A Perl 6 List <pre><code>multi method Str(List:D:) returns Str:D</pre></code>Stringifies the elements of the list and joins them with spaces (same as .join(' ')). http://doc.perl6.org/type/List#Str
+Backtrace.Str A Perl 6 Backtrace <pre><code>multi method Str(Backtrace:D:) returns Str:D:</pre></code>Returns a concise string representation of the backtrace, omitting routines marked as is hidden_from_backtrace, and at the discretion of the implementor, also some routines from the setting. http://doc.perl6.org/type/Backtrace#Str
+Code.Str A Perl 6 Code <pre><code>multi method Str(Code:D:) returns Str:D</pre></code>Returns the name of the code object. http://doc.perl6.org/type/Code#Str
+Date.Str A Perl 6 Date <pre><code>multi method Str(Date:D:) returns Str:D</pre></code>Returns the date in YYYY-MM-DD format (ISO 8601) http://doc.perl6.org/type/Date#Str
+Match.Str A Perl 6 Match Returns the matched text. http://doc.perl6.org/type/Match#Str
+Str D [[Mu.Str]]\n[[List.Str]]\n[[Backtrace.Str]]\n[[Code.Str]]\n[[Date.Str]]\n[[Match.Str]]
+Mu.perl A Perl 6 Mu <pre><code>multi sub perl(Mu) returns Str&#10;multi method perl() returns Str</pre></code>Returns a Perlish representation of the object (i.e., can usually be reparsed to regenerate the object). http://doc.perl6.org/type/Mu#perl
+perl R Mu.perl
+Match.chunks A Perl 6 Match Returns a list of pairs, with the index or submatch name as key and the submatches as values. The list is ordered by starting position of the submatches. http://doc.perl6.org/type/Match#chunks
+chunks R Match.chunks
+Str.index A Perl 6 Str <pre><code>multi sub index(Str:D, Str:D $needle, Int $startpos = 0) returns StrPos&#10;multi method index(Str:D: Str:D $needle, Int $startpos = 0) returns StrPos</pre></code>Searches for $needle in the string starting from $startpos. It returns the offset into the string where $needle was found, and an undefined value if it was not found. http://doc.perl6.org/type/Str#index
+index R Str.index
+Str.length A Perl 6 Str Perl 6 does not have a length function. See X&lt;chars&gt; or X&lt;elems&gt;. http://doc.perl6.org/type/Str#length
+length R Str.length
+List.sort A Perl 6 List <pre><code>multi sub sort(*@elems) returns List:D&#10;multi sub sort(&amp;by, *@elems) returns List:D&#10;multi method sort(List:D:) returns List:D&#10;multi method sort(List:D:, &amp;by) returns List:D</pre></code>Sorts the list, smallest element first. By default &lt; infix:&lt;cmp &gt;&gt; is used for comparing list elements. http://doc.perl6.org/type/List#sort
+sort R List.sort
+Date.today A Perl 6 Date <pre><code>method today() returns Date:D</pre></code>Returns a Date object for the current day. http://doc.perl6.org/type/Date#today
+today R Date.today
+Mu.CREATE A Perl 6 Mu <pre><code>method CREATE() returns Mu:D</pre></code>Allocates a new object of the same type as the invocant, without initializating any attributes. http://doc.perl6.org/type/Mu#CREATE
+CREATE R Mu.CREATE
+Mu.bless A Perl 6 Mu <pre><code>method bless(Mu $candidate, *%attrinit) returns Mu:D</pre></code>Lower-level object construction method than new. http://doc.perl6.org/type/Mu#bless
+bless R Mu.bless
+List.kv A Perl 6 List <pre><code>multi sub kv($list) returns List:D&#10;multi method kv(List:D:) returns List:D</pre></code>Returns an interleaved list of indexes and values. For example http://doc.perl6.org/type/List#kv
+EnumMap.kv A Perl 6 EnumMap <pre><code>method kv(EnumMap:D:) returns List:D</pre></code>Returns a list of keys and values interleaved. http://doc.perl6.org/type/EnumMap#kv
+Pair.kv A Perl 6 Pair <pre><code>multi method kv(Pair:D:) returns Parcel:D</pre></code>Returns a two-element Parcel with the key and value parts o Pair, in that order. This method is a special case of the same-named method on Hash, which returns all its entries as a list of keys and values. http://doc.perl6.org/type/Pair#kv
+kv D [[List.kv]]\n[[EnumMap.kv]]\n[[Pair.kv]]
+Numeric.Real A Perl 6 Numeric <pre><code>method Real(Numeric:D:) returns Real:D</pre></code>If this Numeric is equivalent to a Real, return that Real. Fail with X::Numeric::Real otherwise. http://doc.perl6.org/type/Numeric#Real
+Real R Numeric.Real
+Str.tcuc A Perl 6 Str <pre><code>multi sub tcuc(Str:D ) returns Str:D&#10;multi method tcuc(Str:D:) returns Str:D</pre></code>Turns the first character to title case, and all other characters to upper case http://doc.perl6.org/type/Str#tcuc
+tcuc R Str.tcuc
+Parameter.optional A Perl 6 Parameter Returns True for optional parameters. http://doc.perl6.org/type/Parameter#optional
+optional R Parameter.optional
+Str.substr A Perl 6 Str <pre><code>multi sub substr(Str:D $s, Int:D $from, Int:D $chars = $s.chars - $from) returns Str:D&#10;multi method substr(Str:D $s: Int:D $from, Int:D $chars = $s.chars - $from) returns Str:D</pre></code>Returns a part of the string, starting from the character with index $from (where the first character has index 0) and with length $chars. http://doc.perl6.org/type/Str#substr
+substr R Str.substr
+List.grep A Perl 6 List <pre><code>multi sub grep(Mu $matcher, *@elems) returns List:D&#10;multi method grep(List:D: Mu $matcher) returns List:D</pre></code>Returns a lazy list of elements against which $matcher smart-matches. The elements are returned in the order in which they appear in the original list. http://doc.perl6.org/type/List#grep
+grep R List.grep
+Parameter.copy A Perl 6 Parameter Returns True for is copy parameters. http://doc.perl6.org/type/Parameter#copy
+copy R Parameter.copy
+List.classify A Perl 6 List <pre><code>multi sub classify(&amp;mapper, *@values) returns Hash:D&#10;multi method classify(List:D: &amp;mapper) returns Hash:D</pre></code>classify transforms a list or array of values into a hash representing the classification of those values according to a mapper; each hash key represents the classification for one or more of the incoming list values, and the corresponding hash value contains an array of those list values classified by the mapper into the category of the associated key. For example: http://doc.perl6.org/type/List#classify
+classify R List.classify
+Str.split A Perl 6 Str <pre><code>multi sub split( Str:D $delimiter, Str:D $input, $limit = Inf, :$all) returns Positional&#10;multi sub split(Regex:D $delimiter, Str:D $input, $limit = Inf, :$all) returns Positional</pre></code>Splits a string up into pieces based on delimiters found in the string. http://doc.perl6.org/type/Str#split
+split R Str.split
+Str.trim-leading A Perl 6 Str Remove the white-space charecters from the beginning of a string. See also trim. http://doc.perl6.org/type/Str#trim-leading
+trim-leading R Str.trim-leading
+Numeric.exp A Perl 6 Numeric <pre><code>multi sub exp(Numeric:D, Numeric:D $base = e) returns Numeric:D&#10;multi method exp(Numeric:D: Numeric:D $base = e) returns Numeric:D</pre></code>Returns $base to the power of the number, or e to the power of the number if called without a second argument. http://doc.perl6.org/type/Numeric#exp
+exp R Numeric.exp
+Enum.value A Perl 6 Enum <pre><code>multi method value(Enum:D:)</pre></code>Returns the value part of the Enum. http://doc.perl6.org/type/Enum#value
+Pair.value A Perl 6 Pair <pre><code>multi method value(Pair:D:) is rw</pre></code>Returns the value part of the Pair. http://doc.perl6.org/type/Pair#value
+value D [[Enum.value]]\n[[Pair.value]]
+Complex.re A Perl 6 Complex <pre><code>method re(Complex:D:) returns Real:D</pre></code>Returns the real part of the complex number. http://doc.perl6.org/type/Complex#re
+re R Complex.re
+Bool.prefix:<so> A Perl 6 Bool <pre><code>multi sub prefix:&lt;so&gt;(Mu) returns Bool:D</pre></code>Coerces its argument to Bool, has looser precedence than &lt; prefix:&lt;? &gt;&gt;. http://doc.perl6.org/type/Bool#prefix%3A%3Cso%3E
+prefix:<so> R Bool.prefix:<so>
+List.values A Perl 6 List <pre><code>multi sub values($list) returns List:D&#10;multi method values(List:D:) returns List:D</pre></code>Returns a copy of the list. http://doc.perl6.org/type/List#values
+EnumMap.values A Perl 6 EnumMap <pre><code>method values(EnumMap:D:) returns List:D</pre></code>Returns a list of all values in the EnumMap. http://doc.perl6.org/type/EnumMap#values
+values D [[List.values]]\n[[EnumMap.values]]
+Backtrace.full A Perl 6 Backtrace <pre><code>multi method full(Backtrace:D:) returns Str:D:</pre></code>Returns a full string representation of the backtrace, including hidden frames, compiler-specific frames and those from the setting. http://doc.perl6.org/type/Backtrace#full
+full R Backtrace.full
+List.push A Perl 6 List <pre><code>multi sub push(List:D, *@values) returns List:D&#10;multi method push(List:D: *@values) returns List:D</pre></code>Adds the @values to the end of the list, and returns the modified list. Fails for infinite lists. http://doc.perl6.org/type/List#push
+Hash.push A Perl 6 Hash <pre><code>multi method push(Hash:D: *@new)</pre></code>Adds the @new elements to the hash with the same semantics as hash assignment, but with three exceptions: http://doc.perl6.org/type/Hash#push
+push D [[List.push]]\n[[Hash.push]]
+IO.changed A Perl 6 IO <pre><code>"path/to/file".IO.changed()</pre></code>Timestamp when the inode was last changed. http://doc.perl6.org/type/IO#changed
+changed R IO.changed
+List.shift A Perl 6 List <pre><code>multi sub shift(List:D )&#10;multi method shift(List:D:)</pre></code>Removes and returns the first item from the list. Fails for an empty list. http://doc.perl6.org/type/List#shift
+shift R List.shift
+Parameter.type A Perl 6 Parameter Returns the nominal type constraint of the paramter. http://doc.perl6.org/type/Parameter#type
+type R Parameter.type
+Int.div A Perl 6 Int <pre><code>multi sub infix:&lt;div&gt;(Int:D, Int:D) returns Int:D</pre></code>Does an integer division, rounded down. http://doc.perl6.org/type/Int#div
+div R Int.div
+Str.tclc A Perl 6 Str <pre><code>multi sub tclc(Str:D ) returns Str:D&#10;multi method tclc(Str:D:) returns Str:D</pre></code>Turns the first character to title case, and all other characters to lower case http://doc.perl6.org/type/Str#tclc
+tclc R Str.tclc
+Backtrace::Frame.is-hidden A Perl 6 Backtrace::Frame <pre><code>method is-hidden(Backtrace::Frame:D) return Bool:D</pre></code>Returns True if the frame is marked as hidden with the is hidden_from_backtrace trait. http://doc.perl6.org/type/Backtrace%3A%3AFrame#is-hidden
+is-hidden R Backtrace::Frame.is-hidden
+Range.bounds A Perl 6 Range <pre><code>method bounds(Range:D:) returns Positional</pre></code>Returns a list consisting of the start and end point. http://doc.perl6.org/type/Range#bounds
+bounds R Range.bounds
+List.keys A Perl 6 List <pre><code>multi sub keys($list) returns List:D&#10;multi method keys(List:D:) returns List:D</pre></code>Returns a list of indexes into the list (i.e., 0..(@list.elems-1)). http://doc.perl6.org/type/List#keys
+EnumMap.keys A Perl 6 EnumMap <pre><code>method keys(EnumMap:D:) returns List:D</pre></code>Returns a list of all keys in the EnumMap. http://doc.perl6.org/type/EnumMap#keys
+keys D [[List.keys]]\n[[EnumMap.keys]]
+Rational.norm A Perl 6 Rational <pre><code>method norm(Rational:D:) returns Rational:D</pre></code>Returns a normalized Rational object, ie with positive denominator, and numerator and denominator coprime. http://doc.perl6.org/type/Rational#norm
+norm R Rational.norm
+Parameter.named A Perl 6 Parameter Returns True if it's a named parameter. http://doc.perl6.org/type/Parameter#named
+named R Parameter.named
+Match.make A Perl 6 Match <pre><code>method make(Match:D: Mu $ast)</pre></code>Sets the AST to $ast, and returns it. http://doc.perl6.org/type/Match#make
+make R Match.make
+Rational.numerator A Perl 6 Rational <pre><code>method numerator(Rational:D:) returns NuT:D</pre></code>Returns the numerator. http://doc.perl6.org/type/Rational#numerator
+numerator R Rational.numerator
+List.Int A Perl 6 List <pre><code>multi method Int(List:D:) return Int:D</pre></code>Returns the number of elements in the list (same as .elems). http://doc.perl6.org/type/List#Int
+Numeric.Int A Perl 6 Numeric <pre><code>method Int(Numeric:D:) returns Int:D</pre></code>If this Numeric is equivalent to a Real, return the equivalent of calling truncate on that Real to get an Int. Fail with X::Numeric::Real otherwise. http://doc.perl6.org/type/Numeric#Int
+Int D [[List.Int]]\n[[Numeric.Int]]
+Exception.message A Perl 6 Exception <pre><code>method message(Exception:D:) returns Str:D</pre></code>This is a stub that must be overwritten by subclasses, and should return the exception message. http://doc.perl6.org/type/Exception#message
+message R Exception.message
+Str.ords A Perl 6 Str <pre><code>multi method ords(Str:D:) returns Positional</pre></code>Returns a list of codepoint numbers, one for each character in the string. http://doc.perl6.org/type/Str#ords
+ords R Str.ords
+List.splice A Perl 6 List <pre><code>multi sub splice(@list, $start, $elems? *@replacement) returns List:D&#10;multi method splice(List:D: $start, $elems? *@replacement) returns List:D</pre></code>Deletes $elems elements starting from index $start from the list, returns them and replaces them by @replacement. If $elems is omitted, all the elements starting from index $start are deleted. http://doc.perl6.org/type/List#splice
+splice R List.splice
+Str.lc A Perl 6 Str <pre><code>multi sub lc(Str:D ) returns Str:D&#10;multi method lc(Str:D:) returns Str:D</pre></code>Returns a lower-case version of the string. http://doc.perl6.org/type/Str#lc
+lc R Str.lc
+Match.orig A Perl 6 Match Returns the original string that the regex was matched against. http://doc.perl6.org/type/Match#orig
+orig R Match.orig
+Match.caps A Perl 6 Match Returns a list of pairs, with the index or submatch name as key and the submatches as values. The list is ordered by starting position of the submatches. http://doc.perl6.org/type/Match#caps
+caps R Match.caps
+List.map A Perl 6 List <pre><code>multi sub map(&amp;code, *@elems) returns List:D&#10;multi method map(List:D: &amp;code) returns List:D</pre></code>Invokes &amp;code for each element and gathers the return values in another list and returns it. This happens lazily, ie &amp;code is only invoked when the return values are accessed. http://doc.perl6.org/type/List#map
+map R List.map
+Parameter.constraints A Perl 6 Parameter Returns additional constraints on the parameter (usually as an all-Junction). http://doc.perl6.org/type/Parameter#constraints
+constraints R Parameter.constraints
+Date.day A Perl 6 Date <pre><code>method day(Date:D:) returns Int:D</pre></code>Returns the day of the month of the date (1..31) http://doc.perl6.org/type/Date#day
+day R Date.day
+Bool.prefix:<?> A Perl 6 Bool <pre><code>multi sub prefix:&lt;?&gt;(Mu) returns Bool:D</pre></code>Coerces its argument to Bool. http://doc.perl6.org/type/Bool#prefix%3A%3C%3F%3E
+prefix:<?> R Bool.prefix:<?>
+Parameter.named_names A Perl 6 Parameter Returns a list of names/aliases for this parameter. http://doc.perl6.org/type/Parameter#named_names
+named_names R Parameter.named_names
+Backtrace::Frame.line A Perl 6 Backtrace::Frame <pre><code>method line(Backtrace::Frame:D) returns Int</pre></code>Returns the line number (line numbers start to count from 1). http://doc.perl6.org/type/Backtrace%3A%3AFrame#line
+line R Backtrace::Frame.line
+Real.sign A Perl 6 Real <pre><code>method sign(Real:D:)</pre></code>Returns -1 if the number is negative, 0 if it is zero and 1 otherwise. http://doc.perl6.org/type/Real#sign
+sign R Real.sign
+Match.list A Perl 6 Match Returns a list of positional submatches. http://doc.perl6.org/type/Match#list
+Range.list A Perl 6 Range <pre><code>method list(Range:D:) returns List:D</pre></code>Generates the list of elements that the range represents. http://doc.perl6.org/type/Range#list
+list D [[Match.list]]\n[[Range.list]]
+Str.lcfirst A Perl 6 Str Perl 6 does not have a lcfirst function. http://doc.perl6.org/type/Str#lcfirst
+lcfirst R Str.lcfirst
+Real.base A Perl 6 Real <pre><code>method base(Real:D: Int:D $base where 2..36) returns Str:D</pre></code>Converts the number to a string, using $base as base. For $base larger than ten, capital latin letters are used. http://doc.perl6.org/type/Real#base
+base R Real.base
+Rational.nude A Perl 6 Rational <pre><code>method nude(Rational:D:) returns Positional</pre></code>Returns a list of the numerator and denominator. http://doc.perl6.org/type/Rational#nude
+nude R Rational.nude
+Date.day-of-year A Perl 6 Date <pre><code>method day-of-year(Date:D:) returns Int:D</pre></code>Returns the day of the year (1..366). http://doc.perl6.org/type/Date#day-of-year
+day-of-year R Date.day-of-year
+List.join A Perl 6 List <pre><code>multi sub join($separator, *@list) returns Str:D&#10;multi method join(List:D: $separator) returns Str:D</pre></code>Treats the elements of the list as strings, interleaves them with $separator and concatenates everything into a single string. http://doc.perl6.org/type/List#join
+join R List.join
+IO.modified A Perl 6 IO <pre><code>"path/to/file".IO.modified()</pre></code>Timestamp when the file was last modified. http://doc.perl6.org/type/IO#modified
+modified R IO.modified
+Numeric.abs A Perl 6 Numeric <pre><code>multi sub abs(Numeric:D ) returns Real:D&#10;multi method abs(Numeric:D:) returns Real:D</pre></code>Returns the absolute value of the number. http://doc.perl6.org/type/Numeric#abs
+abs R Numeric.abs
+Any.one A Perl 6 Any Interprets the invocant as a list and creates an one-Junction from it. http://doc.perl6.org/type/Any#one
+one R Any.one
+Numeric.Num A Perl 6 Numeric <pre><code>method Num(Numeric:D:) returns Num:D</pre></code>If this Numeric is equivalent to a Real, return that Real as a Num as accurately as is possible. Fail with X::Numeric::Real otherwise. http://doc.perl6.org/type/Numeric#Num
+Num R Numeric.Num
+List.pairs A Perl 6 List <pre><code>multi sub pairs($list) returns List:D&#10;multi method pairs(List:D:) returns List:D</pre></code>Returns a list of pairs, with the indexes as keys and the list values as values. http://doc.perl6.org/type/List#pairs
+EnumMap.pairs A Perl 6 EnumMap <pre><code>method pairs(EnumMap:D:) returns List:D</pre></code>Returns a list of all pairs in the EnumMap. http://doc.perl6.org/type/EnumMap#pairs
+Pair.pairs A Perl 6 Pair <pre><code>multi method pairs(Pair:D:)</pre></code>Returns a list of one Pair, namely this one. http://doc.perl6.org/type/Pair#pairs
+pairs D [[List.pairs]]\n[[EnumMap.pairs]]\n[[Pair.pairs]]
+Numeric.pred A Perl 6 Numeric <pre><code>method pred(Numerid:D:)</pre></code>Returns the number decremented by one (predecessor). http://doc.perl6.org/type/Numeric#pred
+Str.pred A Perl 6 Str <pre><code>method pred(Str:D:) returns Str:D</pre></code>Returns the string decremented by one. http://doc.perl6.org/type/Str#pred
+pred D [[Numeric.pred]]\n[[Str.pred]]
+Any.none A Perl 6 Any Interprets the invocant as a list and creates an none-Junction from it. http://doc.perl6.org/type/Any#none
+none R Any.none
+Grammar.parse A Perl 6 Grammar <pre><code>method parse(Grammar:D: $str, :$rule = 'TOP', :$actions) returns Match:D</pre></code>Matches the grammar against $str, using $rule as start rule, optionally applying $actions as actions object. http://doc.perl6.org/type/Grammar#parse
+parse R Grammar.parse
+Str.flip A Perl 6 Str <pre><code>multi sub flip(Str:D ) returns Str:D&#10;multi method flip(Str:D:) returns Str:D</pre></code>Returns the string reversed character by character. http://doc.perl6.org/type/Str#flip
+flip R Str.flip
+List.elems A Perl 6 List <pre><code>multi sub elems($list) returns Int:D&#10;multi method elems(List:D:) returns Int:D</pre></code>Returns the number of elements in the list. http://doc.perl6.org/type/List#elems
+Buf.elems A Perl 6 Buf <pre><code>multi method elems(Buf:D:) returns Int:D</pre></code>Returns the number of elements of the buffer. http://doc.perl6.org/type/Buf#elems
+EnumMap.elems A Perl 6 EnumMap <pre><code>method elems(EnumMap:D:) returns Int:D:</pre></code>Returns the number of pairs stored in the EnumMap. http://doc.perl6.org/type/EnumMap#elems
+elems D [[List.elems]]\n[[Buf.elems]]\n[[EnumMap.elems]]
+Match.to A Perl 6 Match Returns the index of the end position of the match. http://doc.perl6.org/type/Match#to
+to R Match.to
+List.eager A Perl 6 List <pre><code>multi method eager(List:D:) returns List:D</pre></code>Evaluates all elements in the list eagerly, and returns the invocant. If a List signals that it is "known infinite", eager evaluation may stop at the point where the infinity is detected. http://doc.perl6.org/type/List#eager
+eager R List.eager
+Match.from A Perl 6 Match Returns the index of the starting position of the match. http://doc.perl6.org/type/Match#from
+from R Match.from
+Backtrace::Frame.subname A Perl 6 Backtrace::Frame <pre><code>method subname(Backtrace::Frame:D) returns Str</pre></code>Returns the name of the enclosing subroutine. http://doc.perl6.org/type/Backtrace%3A%3AFrame#subname
+subname R Backtrace::Frame.subname
+Exception.backtrace A Perl 6 Exception <pre><code>method backtrace(Exception:D:) returns Backtrace:D</pre></code>Returns the backtrace associated with the exception. Only makes sense on exceptions that have been thrown at least once. http://doc.perl6.org/type/Exception#backtrace
+backtrace R Exception.backtrace
+X::AdHoc.payload A Perl 6 X::AdHoc <pre><code>method payload(X::AdHoc:D)</pre></code>Returns the original object which was passed to die. http://doc.perl6.org/type/X%3A%3AAdHoc#payload
+payload R X::AdHoc.payload
+Date.day-of-month A Perl 6 Date <pre><code>method day-of-month(Date:D:) returns Int:D</pre></code>Returns the day of the month of the date (1..31). Synonymous to the day method. http://doc.perl6.org/type/Date#day-of-month
+day-of-month R Date.day-of-month
+IO.accessed A Perl 6 IO <pre><code>"path/to/file".IO.accessed()</pre></code>Timestamp when the file was last accessed. http://doc.perl6.org/type/IO#accessed
+accessed R IO.accessed
+Backtrace::Frame.is-setting A Perl 6 Backtrace::Frame <pre><code>method is-setting(Backtrace::Frame:D) return Bool:D</pre></code>Returns True if the frame is part of a setting. http://doc.perl6.org/type/Backtrace%3A%3AFrame#is-setting
+is-setting R Backtrace::Frame.is-setting
+Int.chr A Perl 6 Int <pre><code>multi sub chr(Int:D ) returns Str:D&#10;multi method chr(Int:D:) returns Str:D</pre></code>Returns a one-character string, by interpreting the integer as a Unicode codepoint number and converting it the corresponding character. http://doc.perl6.org/type/Int#chr
+chr R Int.chr
+Any.any A Perl 6 Any Interprets the invocant as a list and creates an any-Junction from it. http://doc.perl6.org/type/Any#any
+any R Any.any
+Mu.ACCEPTS A Perl 6 Mu <pre><code>multi method ACCEPTS(Mu:U: $other)</pre></code>Performs a type check. Returns True if $other conforms to the invocant (which is always a type object or failure). http://doc.perl6.org/type/Mu#ACCEPTS
+Any.ACCEPTS A Perl 6 Any <pre><code>multi method ACCEPTS(Any:D: Mu $other)</pre></code>Returns True if $other === self (ie it checks object identity). http://doc.perl6.org/type/Any#ACCEPTS
+Code.ACCEPTS A Perl 6 Code <pre><code>multi method ACCEPTS(Code:D: Mu $topic)</pre></code>Usually calls the code object and passes $topic as an argument. However, when called on a code object that takes no arguments, the code object is invoked with no arguments and $topic is dropped. The result of the call is returned. http://doc.perl6.org/type/Code#ACCEPTS
+Numeric.ACCEPTS A Perl 6 Numeric <pre><code>multi method ACCEPTS(Numeric:D: $other)</pre></code>Returns True if $other is numerically the same as the invocant. http://doc.perl6.org/type/Numeric#ACCEPTS
+EnumMap.ACCEPTS A Perl 6 EnumMap <pre><code>multi method ACCEPTS(EnumMap:D: Positional $topic)&#10;multi method ACCEPTS(EnumMap:D: Cool:D $topic)&#10;multi method ACCEPTS(EnumMap:D: Regex $topic)&#10;multi method ACCEPTS(EnumMap:D: Any $topic)</pre></code>Used in smart-matching if the right-hand side is an EnumMap. http://doc.perl6.org/type/EnumMap#ACCEPTS
+ACCEPTS D [[Mu.ACCEPTS]]\n[[Any.ACCEPTS]]\n[[Code.ACCEPTS]]\n[[Numeric.ACCEPTS]]\n[[EnumMap.ACCEPTS]]
+Version.plus A Perl 6 Version <pre><code>method plus(Version:D:) returns Bool:D</pre></code>Returns True if comparisons against this version allow larger versions too. http://doc.perl6.org/type/Version#plus
+plus R Version.plus
+Parameter.invocant A Perl 6 Parameter Returns True if the parameter is the invocant parameter. http://doc.perl6.org/type/Parameter#invocant
+invocant R Parameter.invocant
+Str.ucfirst A Perl 6 Str Perl 6 does not have a ucfirst function. See X&lt;tc&gt;. http://doc.perl6.org/type/Str#ucfirst
+ucfirst R Str.ucfirst
+List.pop A Perl 6 List <pre><code>multi sub pop(List:D )&#10;multi method pop(List:D:)</pre></code>Removes and returns the last item from the list, fails for an empty list. http://doc.perl6.org/type/List#pop
+pop R List.pop
+Date.year A Perl 6 Date <pre><code>method year(Date:D:) returns Int:D</pre></code>Returns the year of the date http://doc.perl6.org/type/Date#year
+year R Date.year
+Mu.Bool A Perl 6 Mu <pre><code>multi sub Bool(Mu) returns Bool:D&#10;multi method Bool() returns Bool:D</pre></code>Returns False on the type object, and True otherwise. http://doc.perl6.org/type/Mu#Bool
+List.Bool A Perl 6 List <pre><code>multi method Bool(List:D:) returns Bool:D</pre></code>Returns True if the list has at least one element, and False for the empty list. http://doc.perl6.org/type/List#Bool
+Buf.Bool A Perl 6 Buf <pre><code>multi method Bool(Buf:D:)</pre></code>Returns False if and only if the buffer is empty. http://doc.perl6.org/type/Buf#Bool
+Numeric.Bool A Perl 6 Numeric <pre><code>multi method Bool(Numeric:D:)</pre></code>Returns False if the number is equivalent to zero, and True otherwise. http://doc.perl6.org/type/Numeric#Bool
+Bool D [[Mu.Bool]]\n[[List.Bool]]\n[[Buf.Bool]]\n[[Numeric.Bool]]
+Range.excludes_max A Perl 6 Range <pre><code>method excludes_max(Range:D:) returns Bool:D</pre></code>Returns True if the end point is excluded from the range, and False otherwise. http://doc.perl6.org/type/Range#excludes_max
+excludes_max R Range.excludes_max
+Range.max A Perl 6 Range <pre><code>method max(Range:D:)</pre></code>Returns the end point of the range. http://doc.perl6.org/type/Range#max
+max R Range.max
+List.roll A Perl 6 List <pre><code>multi method roll(List:D: $count = 1)</pre></code>Returns a lazy list of $count elements, each randomly selected from the list. Each random choice is made indepently, like a separate die roll where each die face is a list element. http://doc.perl6.org/type/List#roll
+roll R List.roll
+Match.ast A Perl 6 Match Returns the AST (ie payload). http://doc.perl6.org/type/Match#ast
+ast R Match.ast
+Parameter.readonly A Perl 6 Parameter Returns True for read-only parameters (the default). http://doc.perl6.org/type/Parameter#readonly
+readonly R Parameter.readonly
+Parameter.capture A Perl 6 Parameter <pre><code>sub f(\capture) { }</pre></code>Returns True for parameters that capture the rest of the argument list. http://doc.perl6.org/type/Parameter#capture
+capture R Parameter.capture
+Mu.clone A Perl 6 Mu <pre><code>method clone(*%twiddles)</pre></code>Creates a shallow clone of the invocant. If named arguments are passed to it, their values are used in every place where an attribute name matches the name of a named argument. http://doc.perl6.org/type/Mu#clone
+clone R Mu.clone
+Mu.new A Perl 6 Mu <pre><code>multi method new(*%attrinit)</pre></code>Default method for constructing (create + initialize) new objects of a class. This method expects only named arguments which are then used to initialize attributes with accessors of the same name. http://doc.perl6.org/type/Mu#new
+Backtrace.new A Perl 6 Backtrace <pre><code>proto method new(*@, *%) {*}&#10;multi method new()</pre></code>Creates a new backtrace, using its calling location as the origin of the backtrace. http://doc.perl6.org/type/Backtrace#new
+Buf.new A Perl 6 Buf <pre><code>method new(*@codes)</pre></code>Creates a Buf from a list of integers. http://doc.perl6.org/type/Buf#new
+Complex.new A Perl 6 Complex <pre><code>proto method new(*@, *%) {*} returns Complex:D&#10;multi method new(Real $re, Real $im) returns Complex:D</pre></code>Creates a new Complex object from real and imaginary parts. http://doc.perl6.org/type/Complex#new
+Date.new A Perl 6 Date <pre><code>proto method new() {*}&#10;multi method new($year, $month, $day) returns Date:D&#10;multi method new(:$year, :$month, :$day) returns Date:D&#10;multi method new(Str $date) returns Date:D&#10;multi method new(DateTime:D $dt) returns Date:D</pre></code>Creates a new Date object, either from a tripple of (year, month, day) integers, or from a string of the form YYYY-MM-DD (ISO 8601), or from a DateTime object. http://doc.perl6.org/type/Date#new
+EnumMap.new A Perl 6 EnumMap <pre><code>proto method new(*@, *%) {*}&#10;multi method new(*@args, *%pairs) </pre></code>Creates a new EnumMap from a list of alternating keys and values, with the same semantics as described for hash assigning in the Hash documentation. http://doc.perl6.org/type/EnumMap#new
+Rational.new A Perl 6 Rational <pre><code>method new(NuT:D $numerator, DenomT:D $denominator) returns Rational:D</pre></code>Creates a new rational object from numerator and denominator. http://doc.perl6.org/type/Rational#new
+Version.new A Perl 6 Version <pre><code>method new(Str:d $s)</pre></code>Creates a Version from a string $s. The string is combed for the numeric, alphabetic, and wildcard components of the version object. Any characters other than alphanumerics and asterisks are assumed to be equivalent to a dot. A dot is also assumed between any adjacent numeric and alphabetic characters. http://doc.perl6.org/type/Version#new
+new D [[Mu.new]]\n[[Backtrace.new]]\n[[Buf.new]]\n[[Complex.new]]\n[[Date.new]]\n[[EnumMap.new]]\n[[Rational.new]]\n[[Version.new]]
+Str.comb A Perl 6 Str <pre><code>multi sub comb(Str:D $matcher, Str:D $input, $limit = Inf, Bool :$match) &#10;multi sub comb(Regex:D $matcher, Str:D $input, $limit = Inf, Bool :$match) &#10;multi method comb(Str:D $input:)&#10;multi method comb(Str:D $input: Str:D $matcher, $limit = Inf, Bool :$match) &#10;multi method comb(Str:D $input: Regex:D $matcher, $limit = Inf, Bool :$match) </pre></code>Searches for $matcher in $input and returns a list of all matches (as Str by default, or as Match if $match is True), limited to at most $limit matches. http://doc.perl6.org/type/Str#comb
+comb R Str.comb
+Enum.invert A Perl 6 Enum <pre><code>multi method invert(Enum:D:) returns Enum:D</pre></code>Returns a new Enum with the original enum's value as the key, and the original enum's key as value. http://doc.perl6.org/type/Enum#invert
+EnumMap.invert A Perl 6 EnumMap <pre><code>method invert(EnumMap:D:) returns List:D</pre></code>Returns a list of pairs, but with key and value exchanged. http://doc.perl6.org/type/EnumMap#invert
+invert D [[Enum.invert]]\n[[EnumMap.invert]]
+Mu.defined A Perl 6 Mu <pre><code>multi sub defined(Mu) returns Bool:D&#10;multi method defined() returns Bool:D</pre></code>Returns False on the type object, and True otherwise. http://doc.perl6.org/type/Mu#defined
+defined R Mu.defined
+Real.ceiling A Perl 6 Real <pre><code>method ceiling(Real:D) returns Int:D</pre></code>Returns the smallest integer not less than the number. http://doc.perl6.org/type/Real#ceiling
+ceiling R Real.ceiling
+Str.wordcase A Perl 6 Str <pre><code>multi sub wordcase(Str:D :&amp;filter = &amp;lc, :%exceptions = set()) returns Str&#10;multi method wordcase(Str:D: :&amp;filter = &amp;lc, :%exceptions = set()) returns Str</pre></code>Performs a Unicode titlecase operation on the first character of each word of the string (as defined by a regex « boundary), and forces the rest of the letters through a filter that defaults to lc. After this operation, if any exceptions are supplied and if the word is found in the set of exceptions, the first character is also forced through the filter. Note that the exceptions must be spelled with an initial titlecase, such as "By" or "And", to produce "by" or "and". http://doc.perl6.org/type/Str#wordcase
+wordcase R Str.wordcase
+Parameter.default A Perl 6 Parameter Returns a closure that upon invocation returns the default value for this parameter, or Any if no default was provided. http://doc.perl6.org/type/Parameter#default
+default R Parameter.default
+List.pick A Perl 6 List <pre><code>multi method pick(List:D: $count = 1)</pre></code>Returns $count elements chosen at random and without repetition from the invocant. If * is passed as $count, all elements from the invocant list are returned in a random sequence. http://doc.perl6.org/type/List#pick
+pick R List.pick
+Complex.im A Perl 6 Complex <pre><code>method im(Complex:D:) returns Real:D</pre></code>Returns the imaginary part of the complex number. http://doc.perl6.org/type/Complex#im
+im R Complex.im
+List.end A Perl 6 List <pre><code>multi sub end($list) returns Int:D&#10;multi method end(List:D:) returns Int:D</pre></code>Returns the index of the last element. http://doc.perl6.org/type/List#end
+end R List.end
+List.reverse A Perl 6 List <pre><code>multi sub reverse(*@list ) returns List:D&#10;multi method reverse(List:D:) returns List:D</pre></code>Returns a list with the same elements in reverse order. http://doc.perl6.org/type/List#reverse
+reverse R List.reverse
+Signature.params A Perl 6 Signature <pre><code>method params(Signature:D:) returns Positional</pre></code>Returns the list of Parameter objects that make up the signature. http://doc.perl6.org/type/Signature#params
+params R Signature.params
+Str.trim-trailing A Perl 6 Str Remove the white-space charecters from the end of a string. See also trim. http://doc.perl6.org/type/Str#trim-trailing
+trim-trailing R Str.trim-trailing
+Code.signature A Perl 6 Code <pre><code>multi method signature(Code:D:) returns Signature:D</pre></code>Returns the Signature object for this code object, which describes its parameters. http://doc.perl6.org/type/Code#signature
+signature R Code.signature
+Range.flat A Perl 6 Range <pre><code>method flat(Range:D:) returns List:D</pre></code>Generates the list of elements that the range represents. http://doc.perl6.org/type/Range#flat
+flat R Range.flat
+Date.day-of-week A Perl 6 Date <pre><code>method day-of-week(Date:D:) returns Int:D</pre></code>Returns the day of the week, where 0 is Sunday, 1 is Monday etc. http://doc.perl6.org/type/Date#day-of-week
+day-of-week R Date.day-of-week
+Numeric.Rat A Perl 6 Numeric <pre><code>method Rat(Numeric:D: Real $epsilon = 1.0e-6) returns Rat:D</pre></code>If this Numeric is equivalent to a Real, return a Rat which is within $epsilon of that Real's value. Fail with X::Numeric::Real otherwise. http://doc.perl6.org/type/Numeric#Rat
+Real.Rat A Perl 6 Real <pre><code>method Rat(Real:D: Real $epsilon = 1e-6)</pre></code>Converts the number to a Rat with the precision $epsilon. http://doc.perl6.org/type/Real#Rat
+Rat D [[Numeric.Rat]]\n[[Real.Rat]]
+Str.lines A Perl 6 Str <pre><code>multi sub lines(Str:D $input, $limit = Inf) returns Positional&#10;multi method lines(Str:D $input: $limit = Inf) returns Positional</pre></code>Returns a list of lines (without trailing newline characters), i.e. the same as a call to $input.comb( / ^^ \N* /, $limit ) would. http://doc.perl6.org/type/Str#lines
+lines R Str.lines
+Str.words A Perl 6 Str <pre><code>multi sub words(Str:D $input, $limit = Inf) returns Positional&#10;multi method words(Str:D $input: $limit = Inf) returns Positional</pre></code>Returns a list of non-whitespace bits, i.e. the same as a call to $input.comb( / \S+ /, $limit ) would. http://doc.perl6.org/type/Str#words
+words R Str.words
+Numeric.log10 A Perl 6 Numeric <pre><code>multi sub log10(Numeric:D ) returns Numeric:D&#10;multi method log10(Numeric:D:) returns Numeric:D</pre></code>Calculates the logarithm to base 10. http://doc.perl6.org/type/Numeric#log10
+log10 R Numeric.log10
+Mu.say A Perl 6 Mu <pre><code>multi method say() returns Bool:D</pre></code>Prints value to $*OUT after stringification using .gist method with newline at end. http://doc.perl6.org/type/Mu#say
+say R Mu.say
+Numeric.log A Perl 6 Numeric <pre><code>multi sub log(Numeric:D, Numeric $base = e) returns Numeric:D&#10;multi method log(Numeric:D: Numeric $base = e) returns Numeric:D</pre></code>Calculates the logarithm to base $base. Defaults to the natural logarithm. http://doc.perl6.org/type/Numeric#log
+log R Numeric.log
+Str.sprintf A Perl 6 Str <pre><code>multi sub sprintf ( Str:D $format, *@args) returns Str:D</pre></code>This function is mostly identical to the C library sprintf function. http://doc.perl6.org/type/Str#sprintf
+sprintf R Str.sprintf
+Parameter.positional A Perl 6 Parameter Returns True if the parameter is positional. http://doc.perl6.org/type/Parameter#positional
+positional R Parameter.positional
+Pair.fmt A Perl 6 Pair <pre><code>multi method fmt(Pair:D:) returns Str:D</pre></code>Takes a format string, and returns a string the key and value parts of the Pair formatted. Here's an example: http://doc.perl6.org/type/Pair#fmt
+fmt R Pair.fmt
+Exception.rethrow A Perl 6 Exception <pre><code>method rethrow(Exception:D:)</pre></code>Rethrows an exception that has already been thrown at least once. This is different from throw in that it preserves the original backtrace. http://doc.perl6.org/type/Exception#rethrow
+rethrow R Exception.rethrow
+List.first A Perl 6 List <pre><code>multi sub first(Mu $matcher, *@elems)&#10;multi method first(List:D: Mu $matcher)</pre></code>Returns the first item of the list which smart-matches against $matcher. http://doc.perl6.org/type/List#first
+first R List.first
+Date.prev A Perl 6 Date <pre><code>method prev(Date:D:) return Date:D</pre></code>Returns the previous day http://doc.perl6.org/type/Date#prev
+prev R Date.prev
+Real.rand A Perl 6 Real <pre><code>sub term:&lt;rand&gt; returns Num:D&#10;method rand(Real:D:) returns Real:D</pre></code>Returns a pseudo-random number between zero and the number. http://doc.perl6.org/type/Real#rand
+rand R Real.rand
+Range.min A Perl 6 Range <pre><code>method min(Range:D:)</pre></code>Returns the start point of the range. http://doc.perl6.org/type/Range#min
+min R Range.min
+Numeric.succ A Perl 6 Numeric <pre><code>method succ(Numerid:D:)</pre></code>Returns the number incremented by one (successor). http://doc.perl6.org/type/Numeric#succ
+Date.succ A Perl 6 Date <pre><code>method succ(Date:D:) returns Date:D</pre></code>Returns the following day http://doc.perl6.org/type/Date#succ
+Str.succ A Perl 6 Str <pre><code>method succ(Str:D) returns Str:D</pre></code>Returns the string incremented by one. http://doc.perl6.org/type/Str#succ
+succ D [[Numeric.succ]]\n[[Date.succ]]\n[[Str.succ]]
+Numeric.roots A Perl 6 Numeric <pre><code>multi method roots(Numeric:D: Int:D $n) returns Positional</pre></code>Returns a list of the $n complex roots, which evaluate to the original number when raised to the $nth power. http://doc.perl6.org/type/Numeric#roots
+roots R Numeric.roots
+Pair.cmp A Perl 6 Pair <pre><code>multi sub infix:&lt;cmp&gt;(Pair:D, Pair:D)</pre></code>The type-agnostic comparator; compares two Pairs. Compares first their key parts, and then compares the value parts if the keys are equal. http://doc.perl6.org/type/Pair#cmp
+cmp R Pair.cmp
+Str.chomp A Perl 6 Str <pre><code>multi sub chomp(Str:D ) returns Str:D&#10;multi method chomp(Str:D:) returns Str:D</pre></code>Returns the string with a logical newline removed from the end. http://doc.perl6.org/type/Str#chomp
+chomp R Str.chomp
+Version.parts A Perl 6 Version <pre><code>method parts(Version:D:) returns List:D</pre></code>Returns the list of parts that make up this Version object http://doc.perl6.org/type/Version#parts
+parts R Version.parts
+Complex.polar A Perl 6 Complex <pre><code>method polar(Complex:D:) returns Positional:D</pre></code>Returns a two-element list of the polar coordinates for this value, ie magnitude and angle in radians. http://doc.perl6.org/type/Complex#polar
+polar R Complex.polar
View
78 perl6_doc/parse.pl
@@ -2,27 +2,25 @@
use strictures 1;
use autodie;
use Encode;
+use HTML::Entities;
use HTML::Parser;
use URI::Escape;
binmode STDOUT, ':encoding(UTF-8)';
chdir 'download/doc.perl6.org/routine';
opendir my $dh, '.';
-sub duck_escape {
- my %replaces = (
- '\\' => '\\\\',
- "\n" => '\n',
- "\t" => '\t',
- );
+sub duck_escape(_) {
my ($string) = @_;
- # I don't know how exactly escaping works, but I hope that this
- # trick won't do too much damage with tricky data (not like such
- # data is planned, but it's better to be prepared for that).
- $string =~ s{ ( [\n\t] | \\ (?= [\\\n\t] ) ) }{$replaces{$1}}gmsx;
- $string;
+
+ # &#10; is valid HTML and it works in <pre> blocks
+ encode_entities( $string, "<>&\n\t" );
+}
+
+sub duck_line {
+ join( "\t", @_ ) . "\n";
}
-my @fields;
+my %functions;
# Only files count, magical directories like '.' shouldn't
for my $file ( grep {-f} readdir $dh ) {
@@ -30,6 +28,7 @@ sub duck_escape {
my $current_field;
my $description;
my $p;
+ $functions{$file} = [];
my $parser = HTML::Parser->new(
api_version => 3,
@@ -48,14 +47,14 @@ sub duck_escape {
],
text_h => [
sub {
- my ( $dtext ) = @_;
+ my ($dtext) = @_;
$dtext = decode 'UTF-8', $dtext;
if ( @tags > 2 ) {
# <h1> stores name of class.
if ( $tags[-2] eq 'h1' ) {
- $current_field = {class => $dtext, method => $file};
- push @fields, $current_field;
+ $current_field = { class => $dtext };
+ push $functions{$file}, $current_field;
}
# First paragraph after <h2> is description.
@@ -78,23 +77,54 @@ sub duck_escape {
],
end_h => [
sub {
+
# If current tag is <p> then turn off <p> mode.
if ( pop @tags eq 'p' && $p ) {
$current_field->{description} = $description;
undef $description;
$p = 0;
}
- }
+ },
],
)->parse_file($file);
}
-for my $field (@fields) {
- my %field = %$field;
- print duck_escape($field{class}), '.', duck_escape($field{method}),
- " (Perl 6)\t\thttp://doc.perl6.org/type/",
- uri_escape_utf8($field{class}), '#',
- uri_escape_utf8($field{method}), "\t",
- duck_escape($field{description} || q[]), "\t",
- duck_escape($field{prototype} || q[]), "\t\t\t\n";
+for my $function ( keys %functions ) {
+ my @definitions = @{ $functions{$function} };
+ for (@definitions) {
+ my %definition = %$_;
+ my $code
+ = $definition{prototype}
+ ? '<pre><code>'
+ . duck_escape( $definition{prototype} )
+ . '</pre></code>'
+ : q[];
+ print duck_line(
+ "$definition{class}.$function",
+ 'A',
+ q[],
+ q[],
+ "Perl 6 $definition{class}",
+ q[],
+ q[],
+ q[],
+ q[],
+ q[],
+ q[],
+ $code . duck_escape $definition{description},
+ 'http://doc.perl6.org/type/'
+ . uri_escape_utf8( $definition{class} ) . '#'
+ . uri_escape_utf8($function),
+ );
+ }
+ if ( @definitions == 1 ) {
+ my %definition = %{ $definitions[0] };
+ print duck_line( $function, 'R', "$definition{class}.$function",
+ q[], q[], q[], q[], q[], q[], q[], q[], q[], );
+ }
+ else {
+ print duck_line( $function, 'D', q[], q[], q[], q[], q[], q[], q[],
+ join( '\n', map {"[[$_->{class}.$function]]"} @definitions ),
+ q[], q[], q[], );
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.