Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Use F#?. Parent comment
Employee is a Sum Type i.e. it can either take a value of (Worker personObject) or (Manager [empObj1, empObj2...])
for instance, an binary tree would be
type Tree a = | Leaf of a | Node of (Tree a * Tree a)
t = Node (Node (Leaf 1, Leaf 2), Leaf 3)
There are no comments on this comment yet.
Employee is a Sum Type i.e. it can either take a value of (Worker personObject) or (Manager [empObj1, empObj2...])
for instance, an binary tree would be
Now, a Tree Int would be