TXR Solutions to Rosetta Code Problems

Click on the small arrow in each title to navigate to the Rosetta Code page which describes the programming problem, and also presents solutions in other languages.

This page is generated by a TXR program which pulls the information directly from the Rosetta Code website. Syntax highlighting is achieved using the Vim text editor, scripted using the via the expect utility.

100 doors
99 Bottles of Beer
A+B
ABC Problem
Accumulator factory
Ackermann function
Align columns
Amb
Apply a callback to an array
Arbitrary-precision integers (included)
Arithmetic evaluation
Arrays
Associative array/Iteration
Balanced brackets
Caesar cipher
Combinations
Command-line arguments
Comments
Conditional structures
Count occurrences of a substring
CSV to HTML translation
Detect division by zero
Empty string
Environment variables
Evaluate binomial coefficients
Exceptions
Exceptions/Catch an exception thrown in a nested call
Factorial
Find limit of recursion
Find URI in text
FizzBuzz
Flatten a list
Floyd's triangle
Function definition
Globally replace text in several files
Greatest common divisor
Hailstone sequence
Handle a signal
Hash from two arrays
Hash join
Hello world/Newline omission
Here document
Higher-order functions
Increment a numerical string
Inheritance/Single
JSON
Letter frequency
Loop over multiple arrays simultaneously
Luhn test of credit card numbers
Mandelbrot set
Maze generation
Metaprogramming
Modular exponentiation
Multiline shebang
Multisplit
Mutual recursion
Narcissist
Old lady swallowed a fly
Pangram checker
Parsing/RPN to infix conversion
Partial function application
Pick random element
Power set
Prime decomposition
Program name
Quine
Random number generator (included)
Range expansion
Read a configuration file
Read a specific line from a file
Read entire file
Regular expressions
Rename a file
Return multiple values
Rot-13
Runtime evaluation/In an environment
S-Expressions
Scope modifiers
Send email
Set consolidation
Shell one-liner
Short-circuit evaluation
Soundex
Special characters
String matching
Strip a set of characters from a string
Strip control codes and extended characters from a string
Strip whitespace from a string/Top and tail
Sum of a series
Tokenize a string
Top rank per group
Twelve statements
Unicode strings
Update a configuration file
Variable-length quantity
Variables
Vigenère cipher
Web scraping
XML/Input
Y combinator
Yahoo! search interface