Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Exercism

PureScript

via Exercism

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
PureScript is a purely functional, statically-typed programming language with global type inference. Functional means that functions are first-class values. Functions are an important and powerful tool for abstraction. In PureScript, computation is modeled as the evaluation of expressions made up of function applications, rather than as the execution of a sequence of instructions.

Syllabus

  • Hello World
    • Exercism's classic introductory exercise. Just say "Hello, World!".
  • Leap
    • Determine whether a given year is a leap year.
  • Pangram
    • Determine if a sentence is a pangram.
  • Bob
    • Bob is a lackadaisical teenager. In conversation, his responses are very limited.
  • Accumulate
    • Implement the `accumulate` operation, which, given a collection and an operation to perform on each element of the collection, returns a new collection containing the result of applying that operation to each element of the input collection.
  • Collatz Conjecture
    • Calculate the number of steps to reach 1 using the Collatz conjecture.
  • RNA Transcription
    • Given a DNA strand, return its RNA complement.
  • Sum of Multiples
    • Given a number, find the sum of all the multiples of particular numbers up to but not including that number.
  • Atbash Cipher
    • Create an implementation of the Atbash cipher, an ancient encryption system created in the Middle East.
  • Difference of Squares
    • Find the difference between the square of the sum and the sum of the squares of the first N natural numbers.
  • Hamming
    • Calculate the Hamming distance between two DNA strands.
  • Isogram
    • Determine if a word or phrase is an isogram.
  • Phone Number
    • Clean up user-entered phone numbers so that they can be sent SMS messages.
  • Raindrops
    • Convert a number into its corresponding raindrop sounds - Pling, Plang and Plong.
  • Scrabble Score
    • Given a word, compute the Scrabble score for that word.
  • Acronym
    • Convert a long phrase to its acronym.
  • Diamond
    • Given a letter, print a diamond starting with 'A' with the supplied letter at the widest point.
  • ETL
    • Change the data format for scoring a game to more easily add other languages.
  • Triangle
    • Determine if a triangle is equilateral, isosceles, or scalene.
  • Allergies
    • Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.
  • Anagram
    • Given a word and a list of possible anagrams, select the correct sublist.
  • All Your Base
    • Convert a number, represented as a sequence of digits in one base, to any other base.
  • Largest Series Product
    • Given a string of digits, calculate the largest product for a contiguous substring of digits of length n.
  • Pascal's Triangle
    • Compute Pascal's triangle up to a given number of rows.
  • Binary Search
    • Implement a binary search algorithm.
  • Matching Brackets
    • Make sure the brackets and braces all match.
  • Crypto Square
    • Implement the classic method for composing secret messages called a square code.
  • Word Count
    • Given a phrase, count the occurrences of each word in that phrase.
  • Meetup
    • Calculate the date of meetups.
  • Spiral Matrix
    • Given the size, return a square matrix of numbers in spiral order.
  • Knapsack
    • Given a knapsack that can only carry a certain weight, determine which items to put in the knapsack in order to maximize their combined value.

Reviews

Start your review of PureScript

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.