Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Latest commit

 

History

History
51 lines (35 loc) · 527 Bytes

Requirement.md

File metadata and controls

51 lines (35 loc) · 527 Bytes

Requirement List

Required syntaxes

Required statements

  1. Function definition statement

Required expressions

  1. Lambda Expression
  2. If Else Expression
  3. Let In Expression

Examples

Function definition

fun x = x * x

Lambda Expression

fun = _\x y. x + y

If Else Expression

fun x =
  if x == 0
  then 1
  else fun (x - 1)

Let In Expression

fun x =
  let y = x
  in x + y

Comments

/* This is comment */
// Just the way of C-style comment