Sha256: fe657bab2e19f7e5e2530ee57f53d3cbebc8ff278ebe895f778181c3903c85be

Contents?: true

Size: 398 Bytes

Versions: 41

Compression:

Stored size: 398 Bytes

Contents

/* I like a teacher who gives you something to take
   home to think about besides homework. */
let gpa_score = 5.0;
type schoolPerson = Teacher | Director | Student(string);

let greeting = person =>
  switch (person) {
  | Teacher => "Hey Professor!"
  | Director => "Hello Director."
  | Student("Richard") => "Still here Ricky?"
  | Student(anyOtherName) => "Hey, " ++ anyOtherName ++ "."
  };

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
rouge-3.7.0 lib/rouge/demos/reasonml