The Pipeline Refactor
Challenge on lesson: Checkpoint: Architecture
CHALLENGE
Difficulty: beginner+25 XP
Implement the decomposed pipeline for expense lines "name,amount": parse_amount(line) (double; 0.0 on missing/invalid), is_valid(line) (name non-empty AND amount > 0), and pipeline_total(lines) (sum of valid amounts). Empty list → 0.0.
Press Submit to check your solution.
Back to lesson: Checkpoint: Architecture