HF RL Explorer

Task: Implement and Demonstrate JavaScript Trampolines

Task: Implement and Demonstrate JavaScript Trampolines: a task in Terminal-Lego-15k (Harbor dataset). A trampoline is a technique used in functional programming to optimize recursive functions and prevent stack overflow errors. Instead of having functions call themselves directly (which adds to…

The task

A trampoline is a technique used in functional programming to optimize recursive functions and prevent stack overflow errors. Instead of having functions call themselves directly (which adds to the call stack), a trampoline repeatedly calls functions in a loop, keeping the stack depth constant.

Part of PrimeIntellect/Terminal-Lego-15k.