Rosettacode tasks in Perl 6
Introduction
1.
Programming tasks
1.1.
1
1.1.1.
100 doors
1.1.2.
100 prisoners
1.1.3.
15 Puzzle Game
1.2.
2
1.2.1.
2048
1.2.2.
21 Game
1.2.3.
24 game
1.2.3.1.
Solve
1.3.
4
1.3.1.
4-rings or 4-squares puzzle
1.4.
9
1.4.1.
99 Bottles of Beer
1.4.2.
9 billion names of God the integer
1.5.
A
1.5.1.
A B
1.5.2.
Abbreviations automatic
1.5.3.
Abbreviations easy
1.5.4.
Abbreviations simple
1.5.5.
ABC Problem
1.5.6.
Abelian sandpile model
1.5.7.
Abstract type
1.5.8.
Abundant deficient and perfect number classifications
1.5.9.
Abundant odd numbers
1.5.10.
Accumulator factory
1.5.11.
Ackermann function
1.5.12.
Active Directory
1.5.12.1.
Connect
1.5.12.2.
Search for a user
1.5.13.
Active object
1.5.14.
Add a variable to a class instance at runtime
1.5.15.
Addition chains
1.5.16.
Address of a variable
1.5.17.
AKS test for primes
1.5.18.
Align columns
1.5.19.
Aliquot sequence classifications
1.5.20.
Almost prime
1.5.21.
Amb
1.5.22.
Amicable pairs
1.5.23.
Anagrams
1.5.23.1.
Deranged anagrams
1.5.24.
Angle difference between two bearings
1.5.25.
Angles geometric normalization and conversion
1.5.26.
Animate a pendulum
1.5.27.
Animation
1.5.28.
Anonymous recursion
1.5.29.
Anti-primes
1.5.30.
Append a record to the end of a text file
1.5.31.
Apply a callback to an array
1.5.32.
Apply a digital filter direct form II transposed
1.5.33.
Approximate Equality
1.5.34.
Arbitrary-precision integers included
1.5.35.
Archimedean spiral
1.5.36.
Arena storage pool
1.5.37.
Arithmetic
1.5.37.1.
Complex
1.5.37.2.
Integer
1.5.37.3.
Rational
1.5.38.
Arithmetic-geometric mean
1.5.38.1.
Calculate Pi
1.5.39.
Arithmetic coding
1.5.39.1.
As a generalized change of radix
1.5.40.
Arithmetic evaluation
1.5.41.
Array concatenation
1.5.42.
Array length
1.5.43.
Arrays
1.5.44.
ASCII art diagram converter
1.5.45.
Aspect Oriented Programming
1.5.46.
Assertions
1.5.47.
Assertions in design by contract
1.5.48.
Associative array
1.5.48.1.
Creation
1.5.48.2.
Iteration
1.5.48.3.
Merging
1.5.49.
Atomic updates
1.5.50.
Attractive numbers
1.5.51.
Average loop length
1.5.52.
Averages
1.5.52.1.
Arithmetic mean
1.5.52.2.
Mean angle
1.5.52.3.
Mean time of day
1.5.52.4.
Median
1.5.52.5.
Mode
1.5.52.6.
Pythagorean means
1.5.52.7.
Root mean square
1.5.52.8.
Simple moving average
1.5.53.
AVL tree
1.6.
B
1.6.1.
Babbage problem
1.6.2.
Bacon cipher
1.6.3.
Balanced brackets
1.6.4.
Balanced ternary
1.6.5.
Banker's algorithm
1.6.6.
Barnsley fern
1.6.7.
Base58Check encoding
1.6.8.
Base64 decode data
1.6.9.
Base64 encode data
1.6.10.
Bell numbers
1.6.11.
Benford's law
1.6.12.
Bernoulli numbers
1.6.13.
Best shuffle
1.6.14.
Bilinear interpolation
1.6.15.
Binary digits
1.6.16.
Binary search
1.6.17.
Binary strings
1.6.18.
Bioinformatics
1.6.18.1.
Base count
1.6.18.2.
Sequence mutation
1.6.19.
Birthday problem
1.6.20.
Bitcoin
1.6.20.1.
Address validation
1.6.20.2.
Public point to address
1.6.21.
Bitmap
1.6.21.1.
Bézier curves
1.6.21.1.1.
Cubic
1.6.21.1.2.
Quadratic
1.6.21.2.
Bresenham's line algorithm
1.6.21.3.
Flood fill
1.6.21.4.
Histogram
1.6.21.5.
Midpoint circle algorithm
1.6.21.6.
PPM conversion through a pipe
1.6.21.7.
Read a PPM file
1.6.21.8.
Read an image through a pipe
1.6.21.9.
Write a PPM file
1.6.22.
Bitwise IO
1.6.23.
Bitwise operations
1.6.24.
Boolean values
1.6.25.
Box the compass
1.6.26.
Brace expansion
1.6.27.
Brazilian numbers
1.6.28.
Break OO privacy
1.6.29.
Brownian tree
1.6.30.
Bulls and cows
1.6.30.1.
Player
1.6.31.
Burrows Wheeler transform
1.7.
C
1.7.1.
Caesar cipher
1.7.2.
Calculating the value of e
1.7.3.
Calendar
1.7.4.
Calendar - for REAL programmers
1.7.5.
Call a foreign-language function
1.7.6.
Call a function
1.7.7.
Call a function in a shared library
1.7.8.
Call an object method
1.7.9.
Cantor set
1.7.10.
Card shuffles
1.7.11.
Carmichael 3 strong pseudoprimes
1.7.12.
Cartesian product of two or more lists
1.7.13.
Case-sensitivity of identifiers
1.7.14.
Casting out nines
1.7.15.
Catalan numbers
1.7.15.1.
Pascal's triangle
1.7.16.
Catamorphism
1.7.17.
Chaocipher
1.7.18.
Chaos game
1.7.19.
Character codes
1.7.20.
Chat server
1.7.21.
Chebyshev coefficients
1.7.22.
Check input device is a terminal
1.7.23.
Check Machin-like formulas
1.7.24.
Check output device is a terminal
1.7.25.
Check that file exists
1.7.26.
Checkpoint synchronization
1.7.27.
Checksumcolor
1.7.28.
Chemical Calculator
1.7.29.
Chernick's Carmichael numbers
1.7.30.
Cheryl's Birthday
1.7.31.
Chinese remainder theorem
1.7.32.
Chinese zodiac
1.7.33.
Cholesky decomposition
1.7.34.
Chowla numbers
1.7.35.
Church Numerals
1.7.36.
Cipolla's algorithm
1.7.37.
Circles of given radius through two points
1.7.38.
Classes
1.7.39.
Closest-pair problem
1.7.40.
Closures
1.7.40.1.
Value capture
1.7.41.
Code segment unload
1.7.42.
Collections
1.7.43.
Color of a screen pixel
1.7.44.
Color quantization
1.7.45.
Color wheel
1.7.46.
Colour bars
1.7.46.1.
Display
1.7.47.
Colour pinstripe
1.7.47.1.
Display
1.7.47.2.
Printer
1.7.48.
Combinations
1.7.49.
Combinations and permutations
1.7.50.
Combinations with repetitions
1.7.50.1.
Square Digit Chain
1.7.51.
Comma quibbling
1.7.52.
Command-line arguments
1.7.53.
Commatizing numbers
1.7.54.
Comments
1.7.55.
Compare a list of strings
1.7.56.
Compile-time calculation
1.7.57.
Compiler
1.7.57.1.
Code generator
1.7.57.2.
Lexical analyzer
1.7.57.3.
Virtual machine interpreter
1.7.58.
Compound data type
1.7.59.
Concurrent computing
1.7.60.
Conditional structures
1.7.61.
Conjugate transpose
1.7.62.
Constrained genericity
1.7.63.
Constrained random points on a circle
1.7.64.
Continued fraction
1.7.64.1.
Arithmetic
1.7.64.1.1.
Construct from rational number
1.7.64.1.2.
Gmatrix NG Contined Fraction N
1.7.64.1.3.
Gmatrix NG Contined Fraction N1 Contined Fraction N2
1.7.65.
Convert decimal number to rational
1.7.66.
Convert seconds to compound duration
1.7.67.
Convex hull
1.7.68.
Conway's Game of Life
1.7.69.
Copy a string
1.7.70.
Copy stdin to stdout
1.7.71.
Count in factors
1.7.72.
Count in octal
1.7.73.
Count occurrences of a substring
1.7.74.
Count the coins
1.7.75.
Cramer's rule
1.7.76.
CRC-32
1.7.77.
Create a file
1.7.78.
Create a file on magnetic tape
1.7.79.
Create a two-dimensional array at runtime
1.7.80.
Create an HTML table
1.7.81.
Create an object
1.7.81.1.
Native demonstration
1.7.82.
Create an object at a given address
1.7.83.
CSV data manipulation
1.7.84.
CSV to HTML translation
1.7.85.
Cuban primes
1.7.86.
Cumulative standard deviation
1.7.87.
Currency
1.7.88.
Currying
1.7.89.
Curve that touches three points
1.7.90.
CUSIP
1.7.91.
Cut a rectangle
1.7.92.
Cycle detection
1.7.93.
Cyclotomic Polynomial
1.8.
D
1.8.1.
Damm algorithm
1.8.2.
Data Encryption Standard
1.8.3.
Date format
1.8.4.
Date manipulation
1.8.5.
Day of the week
1.8.6.
Days between dates
1.8.7.
De Bruijn sequences
1.8.8.
Deal cards for FreeCell
1.8.9.
Death Star
1.8.10.
Decimal floating point number to binary
1.8.11.
Decision tables
1.8.12.
Deconvolution
1.8.12.1.
1D
1.8.12.2.
2D
1.8.13.
Deepcopy
1.8.14.
Define a primitive data type
1.8.15.
Delegates
1.8.16.
Delete a file
1.8.17.
Deming's Funnel
1.8.18.
Department Numbers
1.8.19.
Detect division by zero
1.8.20.
Determinant and permanent
1.8.21.
Determine if a string has all the same characters
1.8.22.
Determine if a string has all unique characters
1.8.23.
Determine if a string is collapsible
1.8.24.
Determine if a string is numeric
1.8.25.
Determine if a string is squeezable
1.8.26.
Determine if only one instance is running
1.8.27.
Determine if two triangles overlap
1.8.28.
Dice game probabilities
1.8.29.
Digital root
1.8.29.1.
Multiplicative digital root
1.8.30.
Dijkstra's algorithm
1.8.31.
Dinesman's multiple-dwelling problem
1.8.32.
Dining philosophers
1.8.33.
Discordian date
1.8.34.
Display a linear combination
1.8.35.
Display an outline as a nested table
1.8.36.
Distributed programming
1.8.37.
Diversity prediction theorem
1.8.38.
DNS query
1.8.39.
Documentation
1.8.40.
Dot product
1.8.41.
Doubly-linked list
1.8.41.1.
Definition
1.8.41.2.
Element definition
1.8.41.3.
Element insertion
1.8.41.4.
Traversal
1.8.42.
Dragon curve
1.8.43.
Draw a clock
1.8.44.
Draw a cuboid
1.8.45.
Draw a pixel
1.8.46.
Draw a rotating cube
1.8.47.
Draw a sphere
1.8.48.
Draw pixel 2
1.8.49.
Dutch national flag problem
1.8.50.
Dynamic variable names
1.9.
E
1.9.1.
Eban numbers
1.9.2.
Echo server
1.9.3.
Eertree
1.9.4.
Egyptian division
1.9.5.
Egyptian fractions
1.9.6.
EKG sequence convergence
1.9.7.
Element-wise operations
1.9.8.
Elementary cellular automaton
1.9.8.1.
Infinite length
1.9.8.2.
Random Number Generator
1.9.9.
Elliptic curve arithmetic
1.9.10.
Elliptic Curve Digital Signature Algorithm
1.9.11.
Emirp primes
1.9.12.
Empty directory
1.9.13.
Empty program
1.9.14.
Empty string
1.9.15.
Enforced immutability
1.9.16.
Entropy
1.9.16.1.
Narcissist
1.9.17.
Enumerations
1.9.18.
Environment variables
1.9.19.
Equilibrium index
1.9.20.
Ethiopian multiplication
1.9.21.
Euler's identity
1.9.22.
Euler's sum of powers conjecture
1.9.23.
Euler method
1.9.24.
Evaluate binomial coefficients
1.9.25.
Even or odd
1.9.26.
Events
1.9.27.
Evolutionary algorithm
1.9.28.
Exceptions
1.9.28.1.
Catch an exception thrown in a nested call
1.9.29.
Executable library
1.9.30.
Execute a Markov algorithm
1.9.31.
Execute a system command
1.9.32.
Execute Brain****
1.9.33.
Execute CopyPasta Language
1.9.34.
Execute HQ9
1.9.35.
Execute SNUSP
1.9.36.
Exponentiation operator
1.9.37.
Exponentiation order
1.9.38.
Extend your language
1.9.39.
Extensible prime generator
1.9.40.
External sort
1.9.41.
Extract file extension
1.9.42.
Extreme floating point values
1.10.
F
1.10.1.
Faces from a mesh
1.10.2.
Factorial
1.10.3.
Factorial base numbers indexing permutations of a collection
1.10.4.
Factorions
1.10.5.
Factors of a Mersenne number
1.10.6.
Factors of an integer
1.10.7.
Fairshare between two and more
1.10.8.
Farey sequence
1.10.9.
Fast Fourier transform
1.10.10.
FASTA format
1.10.11.
Faulhaber's formula
1.10.12.
Faulhaber's triangle
1.10.13.
Feigenbaum constant calculation
1.10.14.
Fermat numbers
1.10.15.
Fibonacci matrix-exponentiation
1.10.16.
Fibonacci n-step number sequences
1.10.17.
Fibonacci sequence
1.10.18.
Fibonacci word
1.10.18.1.
Fractal
1.10.19.
File extension is in extensions list
1.10.20.
File input
1.10.20.1.
Output
1.10.21.
File modification time
1.10.22.
File size
1.10.23.
File size distribution
1.10.24.
Filter
1.10.25.
Find common directory path
1.10.26.
Find duplicate files
1.10.27.
Find first and last set bit of a long integer
1.10.28.
Find largest left truncatable prime in a given base
1.10.29.
Find limit of recursion
1.10.30.
Find palindromic numbers in both binary and ternary bases
1.10.31.
Find the intersection of a line with a plane
1.10.32.
Find the intersection of two lines
1.10.33.
Find the last Sunday of each month
1.10.34.
Find the missing permutation
1.10.35.
Find URI in text
1.10.36.
Finite state machine
1.10.37.
First-class functions
1.10.37.1.
Use numbers analogously
1.10.38.
First class environments
1.10.39.
First perfect square in base N with N unique digits
1.10.40.
First power of 2 that has leading decimal digits of 12
1.10.41.
Five weekends
1.10.42.
Fivenum
1.10.43.
Fixed length records
1.10.44.
FizzBuzz
1.10.45.
Flatten a list
1.10.46.
Flipping bits game
1.10.47.
Flow-control structures
1.10.48.
Floyd's triangle
1.10.49.
Floyd-Warshall algorithm
1.10.50.
Forest fire
1.10.51.
Fork
1.10.52.
Formal power series
1.10.53.
Formatted numeric output
1.10.54.
Forward difference
1.10.55.
Four bit adder
1.10.56.
Four is magic
1.10.57.
Four is the number of letters in the
1.10.58.
Fractal tree
1.10.59.
Fraction reduction
1.10.60.
Fractran
1.10.61.
French Republican calendar
1.10.62.
FTP
1.10.63.
Function composition
1.10.64.
Function definition
1.10.65.
Function frequency
1.10.66.
Function prototype
1.10.67.
Functional coverage tree
1.10.68.
Fusc sequence
1.11.
G
1.11.1.
Galton box animation
1.11.2.
Gamma function
1.11.3.
Gapful numbers
1.11.4.
Gauss-Jordan matrix inversion
1.11.5.
Gaussian elimination
1.11.6.
General FizzBuzz
1.11.7.
Generalised floating point addition
1.11.8.
Generate Chess960 starting position
1.11.9.
Generate lower case ASCII alphabet
1.11.10.
Generate random chess position
1.11.11.
Generator
1.11.11.1.
Exponential
1.11.12.
Generic swap
1.11.13.
Geometric algebra
1.11.14.
Get system command output
1.11.15.
Globally replace text in several files
1.11.16.
Go Fish
1.11.17.
Gradient descent
1.11.18.
Graph colouring
1.11.19.
Gray code
1.11.20.
Grayscale image
1.11.21.
Greatest common divisor
1.11.22.
Greatest element of a list
1.11.23.
Greatest subsequential sum
1.11.24.
Greyscale bars
1.11.24.1.
Display
1.11.25.
Guess the number
1.11.25.1.
With feedback
1.11.25.2.
With feedback player
1.11.26.
GUI
1.11.26.1.
Maximum window dimensions
1.11.27.
GUI component interaction
1.11.28.
GUI enabling
1.11.28.1.
Disabling of controls
1.12.
H
1.12.1.
Hailstone sequence
1.12.2.
Hamming numbers
1.12.3.
Handle a signal
1.12.4.
Happy numbers
1.12.5.
Harshad or Niven series
1.12.6.
Hash from two arrays
1.12.7.
Hash join
1.12.8.
Haversine formula
1.12.9.
Hello world
1.12.9.1.
Graphical
1.12.9.2.
Line printer
1.12.9.3.
Newbie
1.12.9.4.
Newline omission
1.12.9.5.
Standard error
1.12.9.6.
Text
1.12.9.7.
Web server
1.12.10.
Here document
1.12.11.
Heronian triangles
1.12.12.
Hickerson series of almost integers
1.12.13.
Higher-order functions
1.12.14.
Hilbert curve
1.12.15.
History variables
1.12.16.
Hofstadter-Conway 10 000 sequence
1.12.17.
Hofstadter Figure-Figure sequences
1.12.18.
Hofstadter Q sequence
1.12.19.
Holidays related to Easter
1.12.20.
Horizontal sundial calculations
1.12.21.
Horner's rule for polynomial evaluation
1.12.22.
Host introspection
1.12.23.
Hostname
1.12.24.
Hough transform
1.12.25.
HTTP
1.12.26.
HTTPS
1.12.26.1.
Authenticated
1.12.26.2.
Client-authenticated
1.12.27.
Huffman coding
1.12.28.
Humble numbers
1.12.29.
Hunt The Wumpus
1.13.
I
1.13.1.
I before E except after C
1.13.2.
I Q Puzzle
1.13.3.
IBAN
1.13.4.
Identity matrix
1.13.5.
Idiomatically determine all the characters that can be used for symbols
1.13.6.
Idiomatically determine all the lowercase and uppercase letters
1.13.7.
Image convolution
1.13.8.
Image noise
1.13.9.
Imaginary base numbers
1.13.10.
Implicit type conversion
1.13.11.
Include a file
1.13.12.
Increasing gaps between consecutive Niven numbers
1.13.13.
Increment a numerical string
1.13.14.
Index finite lists of positive integers
1.13.15.
Infinity
1.13.16.
Inheritance
1.13.16.1.
Multiple
1.13.16.2.
Single
1.13.17.
Input
1.13.17.1.
Output for Lines of Text
1.13.17.2.
Output for Pairs of Numbers
1.13.18.
Input loop
1.13.19.
Integer comparison
1.13.20.
Integer overflow
1.13.21.
Integer roots
1.13.22.
Integer sequence
1.13.23.
Interactive Help
1.13.24.
Interactive programming
1.13.25.
Intersecting Number Wheels
1.13.26.
Introspection
1.13.27.
Inverted index
1.13.28.
Inverted syntax
1.13.29.
ISBN13 check digit
1.13.30.
Iterated digits squaring
1.14.
J
1.14.1.
Jacobi symbol
1.14.2.
Jaro distance
1.14.3.
Jensen's Device
1.14.4.
Jewels and Stones
1.14.5.
JortSort
1.14.6.
Josephus problem
1.14.7.
Joystick position
1.14.8.
JSON
1.14.9.
Julia set
1.14.10.
Jump anywhere
1.14.11.
Just in time processing on a character stream
1.15.
K
1.15.1.
K-d tree
1.15.2.
K-means clustering
1.15.3.
Kahan summation
1.15.4.
Kaprekar numbers
1.15.5.
Kernighans large earthquake problem
1.15.6.
Keyboard input
1.15.6.1.
Flush the keyboard buffer
1.15.6.2.
Keypress check
1.15.6.3.
Obtain a Y or N response
1.15.7.
Keyboard macros
1.15.8.
Knapsack problem
1.15.8.1.
0-1
1.15.8.2.
Bounded
1.15.8.3.
Continuous
1.15.8.4.
Unbounded
1.15.9.
Knight's tour
1.15.10.
Knuth's algorithm S
1.15.11.
Knuth's power tree
1.15.12.
Knuth shuffle
1.15.13.
Koch curve
1.15.14.
Kolakoski sequence
1.15.15.
Kosaraju
1.15.16.
Kronecker product
1.15.17.
Kronecker product based fractals
1.16.
L
1.16.1.
Lah numbers
1.16.2.
Langton's ant
1.16.3.
Largest int from concatenated ints
1.16.4.
Largest number divisible by its digits
1.16.5.
Last Friday of each month
1.16.6.
Last letter-first letter
1.16.7.
Latin Squares in reduced form
1.16.8.
Launch rocket with countdown and acceleration in stdout
1.16.9.
Law of cosines - triples
1.16.10.
Leap year
1.16.11.
Least common multiple
1.16.12.
Left factorials
1.16.13.
Length of an arc between two angles
1.16.14.
Leonardo numbers
1.16.15.
Letter frequency
1.16.16.
Levenshtein distance
1.16.16.1.
Alignment
1.16.17.
Line circle intersection
1.16.18.
Linear congruential generator
1.16.19.
Linux CPU utilization
1.16.20.
List comprehensions
1.16.21.
List rooted trees
1.16.22.
Literals
1.16.22.1.
Floating point
1.16.22.2.
Integer
1.16.22.3.
String
1.16.23.
Logical operations
1.16.24.
Long multiplication
1.16.25.
Long primes
1.16.26.
Longest common prefix
1.16.27.
Longest common subsequence
1.16.28.
Longest Common Substring
1.16.29.
Longest increasing subsequence
1.16.30.
Longest string challenge
1.16.31.
Look-and-say sequence
1.16.32.
Loop over multiple arrays simultaneously
1.16.33.
Loops
1.16.33.1.
Break
1.16.33.2.
Continue
1.16.33.3.
Do-while
1.16.33.4.
Downward for
1.16.33.5.
For
1.16.33.6.
For with a specified step
1.16.33.7.
Foreach
1.16.33.8.
Increment loop index within loop body
1.16.33.9.
Infinite
1.16.33.10.
N plus one half
1.16.33.11.
Nested
1.16.33.12.
While
1.16.33.13.
With multiple ranges
1.16.33.14.
Wrong ranges
1.16.34.
LU decomposition
1.16.35.
Lucas-Lehmer test
1.16.36.
Lucky and even lucky numbers
1.16.37.
Ludic numbers
1.16.38.
Luhn test of credit card numbers
1.16.39.
Lychrel numbers
1.16.40.
LZW compression
1.17.
M
1.17.1.
Möbius function
1.17.2.
MAC Vendor Lookup
1.17.3.
Mad Libs
1.17.4.
Magic 8-Ball
1.17.5.
Magic squares of doubly even order
1.17.6.
Magic squares of odd order
1.17.7.
Magic squares of singly even order
1.17.8.
Main step of GOST 28147-89
1.17.9.
Make a backup file
1.17.10.
Make directory path
1.17.11.
Man or boy test
1.17.12.
Mandelbrot set
1.17.13.
Map range
1.17.14.
Markov chain text generator
1.17.15.
Mastermind
1.17.16.
Matrix-exponentiation operator
1.17.17.
Matrix arithmetic
1.17.18.
Matrix chain multiplication
1.17.19.
Matrix Digital Rain
1.17.20.
Matrix multiplication
1.17.21.
Matrix transposition
1.17.22.
Maximum triangle path sum
1.17.23.
Mayan calendar
1.17.24.
Mayan numerals
1.17.25.
Maze generation
1.17.26.
Maze solving
1.17.27.
McNuggets Problem
1.17.28.
MD4
1.17.29.
MD5
1.17.29.1.
Implementation
1.17.30.
Median filter
1.17.31.
Memory allocation
1.17.32.
Memory layout of a data structure
1.17.33.
Menu
1.17.34.
Mersenne primes
1.17.35.
Mertens function
1.17.36.
Metallic ratios
1.17.37.
Metaprogramming
1.17.38.
Metered concurrency
1.17.39.
Metronome
1.17.40.
Mian-Chowla sequence
1.17.41.
Middle three digits
1.17.42.
Miller Rabin primality test
1.17.43.
Mind boggling card trick
1.17.44.
Minesweeper game
1.17.45.
Minimal steps down to 1
1.17.46.
Minimum positive multiple in base 10 using only 0 and 1
1.17.47.
Modular arithmetic
1.17.48.
Modular exponentiation
1.17.49.
Modular inverse
1.17.50.
Modulinos
1.17.51.
Monads
1.17.51.1.
List monad
1.17.51.2.
Maybe monad
1.17.52.
Monte Carlo methods
1.17.53.
Montgomery reduction
1.17.54.
Monty Hall problem
1.17.55.
Morse code
1.17.56.
Most frequent k chars distance
1.17.57.
Mouse position
1.17.58.
Move-to-front algorithm
1.17.59.
Multi-dimensional array
1.17.60.
Multidimensional Newton-Raphson method
1.17.61.
Multifactorial
1.17.62.
Multiline shebang
1.17.63.
Multiple distinct objects
1.17.64.
Multiple regression
1.17.65.
Multiplication tables
1.17.66.
Multiplicative order
1.17.67.
Multisplit
1.17.68.
Munchausen numbers
1.17.69.
Munching squares
1.17.70.
Musical scale
1.17.71.
Mutex
1.17.72.
Mutual recursion
1.18.
N
1.18.1.
N'th
1.18.2.
N-body problem
1.18.3.
N-queens problem
1.18.4.
N-smooth numbers
1.18.5.
Named parameters
1.18.6.
Names to numbers
1.18.7.
Naming conventions
1.18.8.
Narcissist
1.18.9.
Narcissistic decimal number
1.18.10.
Native shebang
1.18.11.
Natural sorting
1.18.12.
Nautical bell
1.18.13.
Negative base numbers
1.18.14.
Nested function
1.18.15.
Nested templated data
1.18.16.
Next highest int from digits
1.18.17.
Nim Game
1.18.18.
Non-continuous subsequences
1.18.19.
Non-decimal radices
1.18.19.1.
Convert
1.18.19.2.
Input
1.18.19.3.
Output
1.18.20.
Nonoblock
1.18.21.
Nth root
1.18.22.
Null object
1.18.23.
Number names
1.18.24.
Number reversal game
1.18.25.
Numeric error propagation
1.18.26.
Numeric separator syntax
1.18.27.
Numerical and alphabetical suffixes
1.18.28.
Numerical integration
1.18.28.1.
Adaptive Simpson's method
1.18.28.2.
Gauss-Legendre Quadrature
1.18.29.
NYSIIS
1.19.
O
1.19.1.
Object serialization
1.19.2.
Odd word problem
1.19.3.
Old lady swallowed a fly
1.19.4.
Old Russian measure of length
1.19.5.
One-dimensional cellular automata
1.19.6.
One-time pad
1.19.7.
One of n lines in a file
1.19.8.
OpenGL
1.19.9.
OpenWebNet Password
1.19.10.
Operator precedence
1.19.11.
Optional parameters
1.19.12.
Orbital elements
1.19.13.
Order disjoint list items
1.19.14.
Order two numerical lists
1.19.15.
Ordered Partitions
1.19.16.
Ordered words
1.20.
P
1.20.1.
P-value correction
1.20.2.
Palindrome dates
1.20.3.
Palindrome detection
1.20.4.
Palindromic gapful numbers
1.20.5.
Pangram checker
1.20.6.
Paraffins
1.20.7.
Parallel Brute Force
1.20.8.
Parallel calculations
1.20.9.
Parametric polymorphism
1.20.10.
Parametrized SQL statement
1.20.11.
Parse an IP Address
1.20.12.
Parse command-line arguments
1.20.13.
Parse EBNF
1.20.14.
Parsing
1.20.14.1.
RPN calculator algorithm
1.20.14.2.
RPN to infix conversion
1.20.14.3.
Shunting-yard algorithm
1.20.15.
Partial function application
1.20.16.
Particle Swarm Optimization
1.20.17.
Partition an integer X into N primes
1.20.18.
Pascal's triangle
1.20.18.1.
Puzzle
1.20.19.
Pascal matrix generation
1.20.20.
Password generator
1.20.21.
Pathological floating point problems
1.20.22.
Pattern matching
1.20.23.
Peaceful chess queen armies
1.20.24.
Peano curve
1.20.25.
Pell's equation
1.20.26.
Penney's game
1.20.27.
Penrose tiling
1.20.28.
Pentagram
1.20.29.
Percentage difference between images
1.20.30.
Percolation
1.20.30.1.
Bond percolation
1.20.30.2.
Mean cluster density
1.20.30.3.
Mean run density
1.20.30.4.
Site percolation
1.20.31.
Perfect numbers
1.20.32.
Perfect shuffle
1.20.33.
Perfect totient numbers
1.20.34.
Perlin noise
1.20.35.
Permutation test
1.20.36.
Permutations
1.20.36.1.
Derangements
1.20.36.2.
Rank of a permutation
1.20.37.
Permutations by swapping
1.20.38.
Permutations with repetitions
1.20.39.
Permutations with some identical elements
1.20.40.
Pernicious numbers
1.20.41.
Phrase reversals
1.20.42.
Pi
1.20.43.
Pick random element
1.20.44.
Pierpont primes
1.20.45.
Pig the dice game
1.20.45.1.
Player
1.20.46.
Pinstripe
1.20.46.1.
Display
1.20.46.2.
Printer
1.20.47.
Pisano period
1.20.48.
Plasma effect
1.20.49.
Playfair cipher
1.20.50.
Playing cards
1.20.51.
Plot coordinate pairs
1.20.52.
Pointers and references
1.20.53.
Poker hand analyser
1.20.54.
Polymorphic copy
1.20.55.
Polymorphism
1.20.56.
Polynomial long division
1.20.57.
Polynomial regression
1.20.58.
Polynomial synthetic division
1.20.59.
Polyspiral
1.20.60.
Population count
1.20.61.
Power set
1.20.62.
Powerful numbers
1.20.63.
Pragmatic directives
1.20.64.
Price fraction
1.20.65.
Primality by trial division
1.20.66.
Primalty by Wilson's theorem
1.20.67.
Prime conspiracy
1.20.68.
Prime decomposition
1.20.69.
Primes - allocate descendants to their ancestors
1.20.70.
Primorial numbers
1.20.71.
Print debugging statement
1.20.72.
Priority queue
1.20.73.
Probabilistic choice
1.20.74.
Problem of Apollonius
1.20.75.
Process SMIL directives in XML data
1.20.76.
Program name
1.20.77.
Program termination
1.20.78.
Proper divisors
1.20.79.
Pythagoras tree
1.20.80.
Pythagorean quadruples
1.20.81.
Pythagorean triples
1.21.
Q
1.21.1.
QR decomposition
1.21.2.
Quaternion type
1.21.3.
Queue
1.21.3.1.
Definition
1.21.3.2.
Usage
1.21.4.
Quickselect algorithm
1.21.5.
Quine
1.22.
R
1.22.1.
Ramanujan's constant
1.22.2.
Ramer-Douglas-Peucker line simplification
1.22.3.
Ramsey's theorem
1.22.4.
Random Latin Squares
1.22.5.
Random number generator device
1.22.6.
Random number generator included
1.22.7.
Random numbers
1.22.8.
Range consolidation
1.22.9.
Range expansion
1.22.10.
Range extraction
1.22.11.
Ranking methods
1.22.12.
Raster bars
1.22.13.
Rate counter
1.22.14.
Ray-casting algorithm
1.22.15.
RCRPG
1.22.16.
Read a configuration file
1.22.17.
Read a file character by character
1.22.17.1.
UTF8
1.22.18.
Read a file line by line
1.22.19.
Read a specific line from a file
1.22.20.
Read entire file
1.22.21.
Readline interface
1.22.22.
Real constants and functions
1.22.23.
Recaman's sequence
1.22.24.
Record sound
1.22.25.
Recursive descent parser generator
1.22.26.
Reduced row echelon form
1.22.27.
Reflection
1.22.27.1.
Get source
1.22.27.2.
List methods
1.22.27.3.
List properties
1.22.28.
Regular expressions
1.22.29.
Remove duplicate elements
1.22.30.
Remove lines from a file
1.22.31.
Rename a file
1.22.32.
Rendezvous
1.22.33.
Rep-string
1.22.34.
Repeat
1.22.35.
Repeat a string
1.22.36.
Resistance Calculator
1.22.37.
Resistance Network Calculator
1.22.38.
Resistor mesh
1.22.39.
Respond to an unknown method call
1.22.40.
Retrieve and search chat history
1.22.41.
Return multiple values
1.22.42.
Reverse a string
1.22.43.
Reverse the gender of a string
1.22.44.
Reverse words in a string
1.22.45.
RIPEMD-160
1.22.46.
Robots
1.22.47.
Rock-paper-scissors
1.22.48.
Roman numerals
1.22.48.1.
Decode
1.22.48.2.
Encode
1.22.49.
Roots of a function
1.22.50.
Roots of a quadratic function
1.22.51.
Roots of unity
1.22.52.
Rosetta Code
1.22.52.1.
Count examples
1.22.52.2.
Find bare lang tags
1.22.52.3.
Find unimplemented tasks
1.22.52.4.
Fix code tags
1.22.52.5.
List authors of task descriptions
1.22.52.6.
Rank languages by number of users
1.22.52.7.
Rank languages by popularity
1.22.52.8.
Run examples
1.22.52.9.
Tasks without examples
1.22.53.
Rot-13
1.22.54.
RPG Attributes Generator
1.22.55.
RSA code
1.22.56.
Run-length encoding
1.22.57.
Run as a daemon or service
1.22.58.
Runge-Kutta method
1.22.59.
Runtime evaluation
1.22.59.1.
In an environment
1.23.
S
1.23.1.
S-Expressions
1.23.2.
Safe addition
1.23.3.
Safe mode
1.23.4.
Safe primes and unsafe primes
1.23.5.
Sailors coconuts and a monkey problem
1.23.6.
Same Fringe
1.23.7.
Sattolo cycle
1.23.8.
Scope
1.23.8.1.
Function names and labels
1.23.9.
Scope modifiers
1.23.10.
Search a list
1.23.11.
Search a list of records
1.23.12.
Secure temporary file
1.23.13.
SEDOLs
1.23.14.
Selective File Copy
1.23.15.
Self-describing numbers
1.23.16.
Self-hosting compiler
1.23.17.
Self-referential sequence
1.23.18.
Semiprime
1.23.19.
Semordnilap
1.23.20.
Send an unknown method call
1.23.21.
Send email
1.23.22.
Separate the house number from the street name
1.23.23.
Sequence nth number with exactly n divisors
1.23.24.
Sequence of non-squares
1.23.25.
Sequence of primes by trial division
1.23.26.
Sequence of primorial primes
1.23.27.
Sequence smallest number greater than previous term with exactly n divisors
1.23.28.
Sequence smallest number with exactly n divisors
1.23.29.
Set
1.23.30.
Set consolidation
1.23.31.
Set of real numbers
1.23.32.
Set puzzle
1.23.33.
Seven-sided dice from five-sided dice
1.23.34.
Sexy primes
1.23.35.
SHA-1
1.23.36.
SHA-256
1.23.37.
Shell one-liner
1.23.38.
Shoelace formula for polygonal area
1.23.39.
Short-circuit evaluation
1.23.40.
Shortest common supersequence
1.23.41.
Show Ascii table
1.23.42.
Show the epoch
1.23.43.
Sierpinski arrowhead curve
1.23.44.
Sierpinski carpet
1.23.45.
Sierpinski curve
1.23.46.
Sierpinski pentagon
1.23.47.
Sierpinski square curve
1.23.48.
Sierpinski triangle
1.23.48.1.
Graphical
1.23.49.
Sieve of Eratosthenes
1.23.50.
Simple database
1.23.51.
Simple windowed application
1.23.52.
Simulate input
1.23.52.1.
Keyboard
1.23.52.2.
Mouse
1.23.53.
Simulated annealing
1.23.54.
Sine wave
1.23.55.
Singleton
1.23.56.
Singly-linked list
1.23.56.1.
Element definition
1.23.56.2.
Element insertion
1.23.56.3.
Element removal
1.23.56.4.
Traversal
1.23.57.
Sleep
1.23.58.
Smarandache prime-digital sequence
1.23.59.
Smith numbers
1.23.60.
Snake
1.23.61.
Snake And Ladder
1.23.62.
SOAP
1.23.63.
Sockets
1.23.64.
Sokoban
1.23.65.
Solve a Hidato puzzle
1.23.66.
Solve a Holy Knight's tour
1.23.67.
Solve a Hopido puzzle
1.23.68.
Solve a Numbrix puzzle
1.23.69.
Solve the no connection puzzle
1.23.70.
Sort a list of object identifiers
1.23.71.
Sort an array of composite structures
1.23.72.
Sort an integer array
1.23.73.
Sort disjoint sublist
1.23.74.
Sort numbers lexicographically
1.23.75.
Sort stability
1.23.76.
Sort three variables
1.23.77.
Sort using a custom comparator
1.23.78.
Sorting algorithms
1.23.78.1.
Bead sort
1.23.78.2.
Bogosort
1.23.78.3.
Bubble sort
1.23.78.4.
Circle Sort
1.23.78.5.
Cocktail sort
1.23.78.6.
Comb sort
1.23.78.7.
Counting sort
1.23.78.8.
Cycle sort
1.23.78.9.
Gnome sort
1.23.78.10.
Heapsort
1.23.78.11.
Insertion sort
1.23.78.12.
Merge sort
1.23.78.13.
Pancake sort
1.23.78.14.
Patience sort
1.23.78.15.
Permutation sort
1.23.78.16.
Quicksort
1.23.78.17.
Radix sort
1.23.78.18.
Selection sort
1.23.78.19.
Shell sort
1.23.78.20.
Sleep sort
1.23.78.21.
Stooge sort
1.23.78.22.
Strand sort
1.23.79.
Soundex
1.23.80.
Sparkline in unicode
1.23.81.
Special characters
1.23.82.
Special variables
1.23.83.
Speech synthesis
1.23.84.
Spelling of ordinal numbers
1.23.85.
Spinning rod animation
1.23.85.1.
Text
1.23.86.
Spiral matrix
1.23.87.
Split a character string based on change of character
1.23.88.
Spoof game
1.23.89.
SQL-based authentication
1.23.90.
Square-free integers
1.23.91.
Square but not cube
1.23.92.
Stable marriage problem
1.23.93.
Stack
1.23.94.
Stack traces
1.23.95.
Stair-climbing puzzle
1.23.96.
Start from a main routine
1.23.97.
Starting a web browser
1.23.98.
State name puzzle
1.23.99.
Statistics
1.23.99.1.
Basic
1.23.99.2.
Normal distribution
1.23.100.
Stem-and-leaf plot
1.23.101.
Stern-Brocot sequence
1.23.102.
Stirling numbers of the first kind
1.23.103.
Stirling numbers of the second kind
1.23.104.
Straddling checkerboard
1.23.105.
Stream Merge
1.23.106.
String append
1.23.107.
String case
1.23.108.
String comparison
1.23.109.
String concatenation
1.23.110.
String interpolation included
1.23.111.
String length
1.23.112.
String matching
1.23.113.
String prepend
1.23.114.
Strip a set of characters from a string
1.23.115.
Strip block comments
1.23.116.
Strip comments from a string
1.23.117.
Strip control codes and extended characters from a string
1.23.118.
Strip whitespace from a string
1.23.118.1.
Top and tail
1.23.119.
Strong and weak primes
1.23.120.
Subleq
1.23.121.
Subset sum problem
1.23.122.
Substitution Cipher
1.23.123.
Substring
1.23.123.1.
Top and tail
1.23.124.
Subtractive generator
1.23.125.
Successive prime differences
1.23.126.
Sudoku
1.23.127.
Suffix tree
1.23.128.
Suffixation of decimal numbers
1.23.129.
Sum and product of an array
1.23.130.
Sum and Product Puzzle
1.23.131.
Sum data type
1.23.132.
Sum digits of an integer
1.23.133.
Sum multiples of 3 and 5
1.23.134.
Sum of a series
1.23.135.
Sum of squares
1.23.136.
Sum to 100
1.23.137.
Sunflower fractal
1.23.138.
Super-d numbers
1.23.139.
Superellipse
1.23.140.
Superpermutation minimisation
1.23.141.
Sutherland-Hodgman polygon clipping
1.23.142.
Symmetric difference
1.23.143.
Synchronous concurrency
1.23.144.
System time
1.24.
T
1.24.1.
Table creation
1.24.1.1.
Postal addresses
1.24.2.
Take notes on the command line
1.24.3.
Tarjan
1.24.4.
Taxicab numbers
1.24.5.
Teacup rim text
1.24.6.
Temperature conversion
1.24.7.
Terminal control
1.24.7.1.
Clear the screen
1.24.7.2.
Coloured text
1.24.7.3.
Cursor movement
1.24.7.4.
Cursor positioning
1.24.7.5.
Dimensions
1.24.7.6.
Display an extended character
1.24.7.7.
Hiding the cursor
1.24.7.8.
Inverse video
1.24.7.9.
Positional read
1.24.7.10.
Preserve screen
1.24.7.11.
Restricted width positional input
1.24.7.11.1.
No wrapping
1.24.7.11.2.
With wrapping
1.24.7.12.
Ringing the terminal bell
1.24.7.13.
Unicode output
1.24.8.
Ternary logic
1.24.9.
Test a function
1.24.10.
Test integerness
1.24.11.
Text between
1.24.12.
Text processing
1.24.12.1.
1
1.24.12.2.
2
1.24.12.3.
Max licenses in use
1.24.13.
Text to HTML
1.24.14.
Textonyms
1.24.15.
The ISAAC Cipher
1.24.16.
The Name Game
1.24.17.
The Twelve Days of Christmas
1.24.18.
Thiele's interpolation formula
1.24.19.
Thue-Morse
1.24.20.
Tic-tac-toe
1.24.21.
Time-based One-time Password Algorithm
1.24.22.
Time a function
1.24.23.
Tokenize a string
1.24.24.
Tokenize a string with escaping
1.24.25.
Tonelli-Shanks algorithm
1.24.26.
Top rank per group
1.24.27.
Topic variable
1.24.28.
Topological sort
1.24.28.1.
Extracted top item
1.24.29.
Topswops
1.24.30.
Total circles area
1.24.31.
Totient function
1.24.32.
Towers of Hanoi
1.24.33.
Trabb Pardo Knuth algorithm
1.24.34.
Transportation problem
1.24.35.
Tree datastructures
1.24.36.
Tree traversal
1.24.37.
Trigonometric functions
1.24.38.
Truncatable primes
1.24.39.
Truncate a file
1.24.40.
Truth table
1.24.41.
Twelve statements
1.24.42.
Two Sum
1.24.43.
Type detection
1.25.
U
1.25.1.
Ulam spiral for primes
1.25.2.
Unbias a random generator
1.25.3.
Undefined values
1.25.4.
Unicode strings
1.25.5.
Unicode variable names
1.25.6.
Unit testing
1.25.7.
Universal Turing machine
1.25.8.
Unix
1.25.8.1.
Ls
1.25.9.
Unprimeable numbers
1.25.10.
Untrusted environment
1.25.11.
UPC
1.25.12.
Update a configuration file
1.25.13.
URL decoding
1.25.14.
URL encoding
1.25.15.
URL parser
1.25.16.
URL shortener
1.25.17.
Use another language to call a function
1.25.18.
User defined pipe and redirection operators
1.25.19.
User input
1.25.19.1.
Graphical
1.25.19.2.
Text
1.25.20.
UTF-8 encode and decode
1.26.
V
1.26.1.
Validate International Securities Identification Number
1.26.2.
Vampire number
1.26.3.
Van der Corput sequence
1.26.4.
Van Eck sequence
1.26.5.
Variable-length quantity
1.26.6.
Variable size
1.26.6.1.
Get
1.26.6.2.
Set
1.26.7.
Variables
1.26.8.
Variadic function
1.26.9.
Vector
1.26.10.
Vector products
1.26.11.
Verify distribution uniformity
1.26.11.1.
Chi-squared test
1.26.11.2.
Naive
1.26.12.
Vibrating rectangles
1.26.13.
Video display modes
1.26.14.
Vigenère cipher
1.26.14.1.
Cryptanalysis
1.26.15.
Visualize a tree
1.26.16.
VList
1.26.17.
Vogel's approximation method
1.26.18.
Voronoi diagram
1.27.
W
1.27.1.
Walk a directory
1.27.1.1.
Non-recursively
1.27.1.2.
Recursively
1.27.2.
Water collected between towers
1.27.3.
Web scraping
1.27.4.
Weird numbers
1.27.5.
Welch's t-test
1.27.6.
Window creation
1.27.6.1.
X11
1.27.7.
Window management
1.27.8.
Wireworld
1.27.9.
Word break problem
1.27.10.
Word count
1.27.11.
Word frequency
1.27.12.
Word search
1.27.13.
Word wrap
1.27.14.
World Cup group stage
1.27.15.
Write entire file
1.27.16.
Write float arrays to a text file
1.27.17.
Write language name in 3D ASCII
1.27.18.
Write to Windows event log
1.28.
X
1.28.1.
Xiaolin Wu's line algorithm
1.28.2.
XML
1.28.2.1.
DOM serialization
1.28.2.2.
Input
1.28.2.3.
Output
1.28.2.4.
XPath
1.28.3.
XML Validation
1.29.
Y
1.29.1.
Y combinator
1.29.2.
Yahoo search interface
1.29.3.
Yellowstone sequence
1.29.4.
Yin and yang
1.30.
Z
1.30.1.
Zebra puzzle
1.30.2.
Zeckendorf arithmetic
1.30.3.
Zeckendorf number representation
1.30.4.
Zero to the zero power
1.30.5.
Zhang-Suen thinning algorithm
1.30.6.
Zig-zag matrix
1.30.7.
Zumkeller numbers
2.
The End
Powered by
GitBook
Rosettacode tasks in Perl 6
Sort an integer array
If
@a
contains only numbers:
my
@sorted
=
sort
@a
;
For an in-place sort:
@a
.=
sort
;