Can there be a samples directory with an .md file on how to run them? ("run npm install, run npm run build")?
I think, the following samples could be beneficial:
- "99 bottles of beer". Calls itself recursively starting from 99, special casing 1.
- "sort numbers" - an equivalent of the following Haskell code:
quickSort [] = []
quickSort (x:xs) = quickSort (filter (<x) xs)
++ [x] ++
quickSort (filter (>=x) xs)
- Consume a FunctionalScript function from "existing" TypeScript project
- Consume a FunctionalScript function from "existing" JavaScript project
- Probably, "Hello World" (just to cover another classic example)
- A parser? (where functional languages are strong). Could be a URL or DateTime parser.
- Expression calculator (
+, -, /, %, (), maybe pi constant, log2(), sin(), cos() etc) - the stuff similar to what a typical hardware calculator has.
Can there be a
samplesdirectory with an.mdfile on how to run them? ("runnpm install, runnpm run build")?I think, the following samples could be beneficial:
+,-,/,%,(), maybepiconstant,log2(),sin(),cos()etc) - the stuff similar to what a typical hardware calculator has.