This project implements various utilities and functions in TypeScript and Racket. It includes modules for handling results, string manipulation, list operations, and more.
- 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.
- 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
.
- Interpreter: Ensure Racket is installed (
#lang racket/base
is required). - Usage: Load and run
part4.l3
in the Racket interpreter.
- Clone the repository.
- Install dependencies with
npm install
. - Build TypeScript files with
npm run build
.
- Unit tests are located in the
tests
directory. - Run tests with
npm test
.