Helper functions written in functional programming language - Racket, Haskell
Follow Racket, Pollen Installation Documentation
Racket Docs For Installation
Follow Haskell GHCup Installation Documentation
Haskell GHCup Installation
GHCi commands
Racket:
$ racket file_name.rkt
Haskell:
$ ghci file_name.hs
- Racket
-> list_operations.rkt contains functions to find length of list, index of an element in a list, subset, pairs, determine duplicates, find elements with multiple occurences, sum of all elements in a list, maximum value
-> propositions.rkt contains functions to determine if element is a digit or letter, find if a variable name is eligible, determine truth-false values of propositions and solve them - Haskell
-> list_operations.hs contains function to calculate size of list, get nth element of the list, get min and max of list, calculate area and heron area of triangle, contains for string, uniquify string
-> propositions.hs
- clone the repository in the desired location
- open terminal and change directory
- once inside the repository, type
git ls-files | xargs wc -l