nexxel • snippets

Intersection of Two Lists

Function that returns a list of elements that are common to two lists

Language: TypeScript
Reverse A List Without Mutation

Recursive function to reverse a list without mutation

Language: OCaml