Skip to content

NaveBlander/TypeScript-Functional-Programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript-Functional-Programming

Description

This project implements various utilities and functions in TypeScript and Racket. It includes modules for handling results, string manipulation, list operations, and more.

Files

  • src/lib/result.ts: Defines a Result type and utility functions for handling success and failure scenarios.
  • src/part2/part2.ts: Contains functions for counting vowels, checking paired parentheses, and converting trees to sentences.
  • src/part3/find.ts: Implements find functions with error handling using the Result type from result.ts.
  • src/part4/part4.l3: Racket code for list operations like append, reverse, and duplicate items.

Usage

TypeScript

  • Setup: Ensure TypeScript and required libraries are installed (npm install).
  • Run: Use npm run build to compile TypeScript to JavaScript.
  • Test: Run tests with npm test.

Racket

  • Interpreter: Ensure Racket is installed (#lang racket/base is required).
  • Usage: Load and run part4.l3 in the Racket interpreter.

Installation

  1. Clone the repository.
  2. Install dependencies with npm install.
  3. Build TypeScript files with npm run build.

Testing

  • Unit tests are located in the tests directory.
  • Run tests with npm test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published