Functional Vs. Imperative Pizza
Functional:
return baked([
dough,
sauce,
sliced(pepporoni),
shredded(cheese)
])
Imperative:
pizza = []
pizza += dough
pizza += sauce
slice(pepperoni)
pizza += pepperoni
shred(cheese)
pizza += cheese
bake(pizza)
return pizza