Basic Pipe

beginner1 of 5

Learn about basic pipe in fp-ts pipe

Code Editor

01-basic-pipe.exercise.ts

💻
Loading editor...
Preparing Monaco Editor with TypeScript support

Test Results

Requirements

describe('transform', () => {
  it('applies transformations in correct order: (5 * 2 + 10)^2 = 400', () => {
    const result = transform(5)
    expect(result).toEqual(400)
  })

  it('applies transformations in correct order: (3 * 2 + 10)^2 = 256', () => {
    const result = transform(3)
    expect(result).toEqual(256)
  })

  it('applies transformations in correct order: (0 * 2 + 10)^2 = 100', () => {
    const result = transform(0)
    expect(result).toEqual(100)
  })
})
🧪

Ready to Test?

Click "Run Tests" to see how your code performs

Pro Tips

💡 Stuck? Here's what to try:

  • • Read the comments in the code carefully
  • • Run tests frequently to get feedback
  • • Check the fp-ts documentation
  • • Use the solution if you need help

🚀 Learning Approach:

  • • Focus on understanding, not just solving
  • • Experiment with different approaches
  • • Think about real-world applications
  • • Build on previous exercises