Picat
This programming language may be used to instruct a computer to perform a task.
Listed below are all of the tasks on Rosetta Code which have been solved using Picat.
This programming language may be used to instruct a computer to perform a task.
See Also: |
|
---|
Your Help Needed
If you know Picat, please write code for some of the tasks not implemented in Picat.
If you know Picat, please write code for some of the tasks not implemented in Picat.
Picat is a simple, and yet powerful, logic-based multi-paradigm programming language aimed for general-purpose applications, including non-determinism, tabling, constraint solving (Constraint Programming, SAT, and MIP), planning, functions, list comprehensions, and general imperative constructs such as for loops, while loops, and re-assignments. Picat is available via http://picat-lang.org/ .
There are quite a few Picat examples at http://hakank.org/picat/ .
Todo[edit]
Reports:Tasks_not_implemented_in_Picat
References[edit]
Pages in category "Picat"
The following 324 pages are in this category, out of 324 total.
A
- A+B
- Abbreviations, automatic
- Abbreviations, easy
- ABC problem
- Abundant, deficient and perfect number classifications
- Ackermann function
- AKS test for primes
- Algebraic data types
- Align columns
- Aliquot sequence classifications
- Almost prime
- Alternade words
- Amb
- Amicable pairs
- Anagrams
- Anagrams/Deranged anagrams
- Anti-primes
- Apply a callback to an array
- Arithmetic evaluation
- Array concatenation
- Array length
- Arrays
- Ascending primes
- Assertions
- Associative array/Creation
- Associative array/Iteration
- Averages/Median
- Averages/Root mean square
- Averages/Simple moving average
- AVL tree
B
C
- Caesar cipher
- Casting out nines
- Catalan numbers
- Character codes
- Chinese zodiac
- Chowla numbers
- Code Golf: Code Golf
- Collections
- Colorful numbers
- Combinations
- Command-line arguments
- Comments
- Compare a list of strings
- Conditional structures
- Continued fraction
- Conway's Game of Life
- Copy a string
- Count how many vowels and consonants occur in a string
- Count in octal
- Count occurrences of a substring
- Count the coins
- Create a two-dimensional array at runtime
D
E
F
- Factorial
- Factors of an integer
- Farey sequence
- Fibonacci sequence
- Fibonacci word
- Filter
- Find common directory path
- Find palindromic numbers in both binary and ternary bases
- Find the intersection of a line with a plane
- Find the missing permutation
- Five weekends
- FizzBuzz
- Floyd's triangle
- Forward difference
- Function definition
- Fusc sequence
G
H
- Hailstone sequence
- Hamming numbers
- Happy numbers
- Hash from two arrays
- Hello world/Line printer
- Hello world/Newline omission
- Hello world/Standard error
- Hello world/Text
- Higher-order functions
- Hofstadter Q sequence
- Hofstadter-Conway $10,000 sequence
- Horner's rule for polynomial evaluation
- Huffman coding
I
K
L
- Largest int from concatenated ints
- Largest proper divisor of n
- Last Friday of each month
- Last letter-first letter
- Leap year
- Least common multiple
- Legendre prime counting function
- Leonardo numbers
- Letter frequency
- Levenshtein distance
- Linear congruential generator
- List comprehensions
- Literals/Floating point
- Literals/Integer
- Literals/String
- Long primes
- Longest common subsequence
- Longest increasing subsequence
- Look-and-say sequence
- Loop over multiple arrays simultaneously
- Loops/Continue
- Loops/Do-while
- Loops/For
- Loops/While
- Loops/With multiple ranges
- Ludic numbers
- Luhn test of credit card numbers
- Lychrel numbers
- LZW compression
M
- Mad Libs
- Magic squares of odd order
- Mandelbrot set
- Matrix transposition
- Maximum difference between adjacent elements of list
- Maximum triangle path sum
- Maze generation
- Maze solving
- McNuggets problem
- Middle three digits
- Monte Carlo methods
- Monty Hall problem
- Mosaic matrix
- Move-to-front algorithm
- Multifactorial
- Multiplication tables
- Munchausen numbers
- Mutual recursion
P
- Palindrome detection
- Pangram checker
- Parse command-line arguments
- Partition function P
- Pascal's triangle/Puzzle
- Pentomino tiling
- Perfect numbers
- Perfect shuffle
- Permutations
- Permutations/Derangements
- Pernicious numbers
- Phrase reversals
- Pi
- Pick random element
- Playing cards
- Poker hand analyser
- Population count
- Price fraction
- Primality by trial division
- Prime conspiracy
- Prime decomposition
- Priority queue
- Program termination
- Proper divisors
- Pythagorean triples
R
- Random Latin squares
- Random numbers
- Range extraction
- Read a configuration file
- Read a file line by line
- Read entire file
- Real constants and functions
- Remove vowels from a string
- Rep-string
- Return multiple values
- Rock-paper-scissors
- Roman numerals/Decode
- Roman numerals/Encode
- Rot-13
- Round-robin tournament schedule
- Run-length encoding
S
- Sailors, coconuts and a monkey problem
- Sattolo cycle
- Search a list
- Self-describing numbers
- Send an unknown method call
- Sequence of non-squares
- Set puzzle
- Sierpinski carpet
- Sierpinski triangle
- Sieve of Eratosthenes
- Smallest multiple
- Smallest square that begins with n
- Solve a Hidato puzzle
- Solve a Holy Knight's tour
- Solve a Hopido puzzle
- Solve hanging lantern problem
- Solve the no connection puzzle
- Solve triangle solitare puzzle
- Sorting algorithms/Heapsort
- Sorting algorithms/Merge sort
- Sorting algorithms/Pancake sort
- Sorting algorithms/Quicksort
- Sorting algorithms/Shell sort
- Soundex
- Strange plus numbers
- String append
- String case
- String comparison
- String concatenation
- String interpolation (included)
- String matching
- String prepend
- Strip a set of characters from a string
- Strip whitespace from a string/Top and tail
- Subset sum problem
- Substitution cipher
- Substring
- Substring primes
- Substring/Top and tail
- Successive prime differences
- Sudoku
- Sum and product of an array
- Sum and product puzzle
- Sum digits of an integer
- Sum multiples of 3 and 5
- Sum of a series
- Sum of squares
- Sum to 100
- Symmetric difference
T
- Terminal control/Display an extended character
- Ternary logic
- Text processing/1
- Text processing/2
- Text processing/Max licenses in use
- The Name Game
- The Twelve Days of Christmas
- Time a function
- Tokenize a string
- Top rank per group
- Topological sort
- Topswops
- Towers of Hanoi
- Trabb Pardo–Knuth algorithm
- Twelve statements
- Two identical strings