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

Exercism

ReasonML

via Exercism

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Reason is a syntax and toolchain geared towards Javascript programmers, based on the functional language OCaml Being statically typed, it is likely to be safer than Javascript, but has powerful type inference which means type annotations do not get in your way.

Syllabus

  • Hello World
    • Exercism's classic introductory exercise. Just say "Hello, World!".
  • Leap
    • Determine whether a given year is a leap year.
  • Bob
    • Bob is a lackadaisical teenager. In conversation, his responses are very limited.
  • Eliud's Eggs
    • Help Eliud count the number of eggs in her chicken coop by counting the number of 1 bits in a binary representation.
  • RNA Transcription
    • Given a DNA strand, return its RNA complement.
  • Word Count
    • Given a phrase, count the occurrences of each word in that phrase.
  • Phone Number
    • Clean up user-entered phone numbers so that they can be sent SMS messages.
  • Scrabble Score
    • Given a word, compute the Scrabble score for that word.
  • Binary Search
    • Implement a binary search algorithm.
  • Run-Length Encoding
    • Implement run-length encoding and decoding.
  • Resistor Color
    • Convert a resistor band's color to its numeric representation.
  • Two Fer
    • Create a sentence of the form "One for X, one for me.".
  • Armstrong Numbers
    • Determine if a number is an Armstrong number.
  • Space Age
    • Given an age in seconds, calculate how old someone is in terms of a given planet's solar years.
  • Roman Numerals
    • Convert modern Arabic numbers into Roman numerals.
  • Raindrops
    • Convert a number into its corresponding raindrop sounds - Pling, Plang and Plong.
  • Allergies
    • Given a person's allergy score, determine whether or not they're allergic to a given item, and their full list of allergies.
  • 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.
  • Protein Translation
    • Translate RNA sequences into proteins.
  • Anagram
    • Given a word and a list of possible anagrams, select the correct sublist.
  • Isogram
    • Determine if a word or phrase is an isogram.
  • Pangram
    • Determine if a sentence is a pangram.
  • All Your Base
    • Convert a number, represented as a sequence of digits in one base, to any other base.
  • Change
    • Correctly determine change to be given using the least number of coins.
  • Flower Field
    • Mark all the flowers in a garden.
  • Acronym
    • Convert a long phrase to its acronym.
  • Triangle
    • Determine if a triangle is equilateral, isosceles, or scalene.
  • List Ops
    • Implement basic list operations.
  • 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.
  • Square Root
    • Given a natural radicand, return its square root.
  • Collatz Conjecture
    • Calculate the number of steps to reach 1 using the Collatz conjecture.

Reviews

Start your review of ReasonML

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.