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

Exercism

ReasonML

via Exercism

Overview

Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
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.
  • 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.".
  • 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.
  • Acronym
    • Convert a long phrase to its acronym.
  • All Your Base
    • Convert a number, represented as a sequence of digits in one base, to any other base.
  • Armstrong Numbers
    • Determine if a number is an Armstrong number.
  • 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.
  • Raindrops
    • Convert a number into its corresponding raindrop sounds - Pling, Plang and Plong.
  • RNA Transcription
    • Given a DNA strand, return its RNA complement.
  • Space Age
    • Given an age in seconds, calculate how old someone is in terms of a given planet's solar years.
  • Word Count
    • Given a phrase, count the occurrences of each word in that phrase.
  • Anagram
    • Given a word and a list of possible anagrams, select the correct sublist.
  • Collatz Conjecture
    • Calculate the number of steps to reach 1 using the Collatz conjecture.
  • Isogram
    • Determine if a word or phrase is an isogram.
  • List Ops
    • Implement basic list operations.
  • Pangram
    • Determine if a sentence is a pangram.
  • Phone Number
    • Clean up user-entered phone numbers so that they can be sent SMS messages.
  • Roman Numerals
    • Convert modern Arabic numbers into Roman numerals.
  • Scrabble Score
    • Given a word, compute the Scrabble score for that word.
  • Square Root
    • Given a natural radicand, return its square root.
  • 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.
  • Binary Search
    • Implement a binary search algorithm.
  • Protein Translation
    • Translate RNA sequences into proteins.
  • Change
    • Correctly determine change to be given using the least number of coins.
  • Flower Field
    • Mark all the flowers in a garden.
  • 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.
  • Run-Length Encoding
    • Implement run-length encoding and decoding.

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.