Skip to content

Helper functions in functional programming language - Racket

License

Notifications You must be signed in to change notification settings

nmathias0121/Racket_Helper_Functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Racket_Helper_Functions

Helper functions written in functional programming language - Racket, Haskell

Install Racket, Haskell

Follow Racket, Pollen Installation Documentation
        Racket Docs For Installation

Follow Haskell GHCup Installation Documentation
        Haskell GHCup Installation
        GHCi commands

Run code:

Racket:
        $ racket file_name.rkt

Haskell:
        $ ghci file_name.hs

Files:

  • 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

To Display Number of Lines in a Repository:

  • clone the repository in the desired location
  • open terminal and change directory
  • once inside the repository, type
        git ls-files | xargs wc -l

About

Helper functions in functional programming language - Racket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published