• Skip to main content
  • Skip to footer

PurelyFunctional.tv

  • Learn Clojure
  • About
  • 🛒 Cart
  • Log in
orders to ingredients

Want this course?

$499.00 – Team License Checkout Added to cart
$75.00 – Download License Checkout Added to cart
$48.00 – Online License Checkout Added to cart
Membership
Download
 Video time: 07m27s
PREVIOUS
NEXT

Want this course?

$499.00 – Team License Checkout Added to cart
$75.00 – Download License Checkout Added to cart
$48.00 – Online License Checkout Added to cart
Membership

orders to ingredients

Course: Introduction to Clojure v2

Updated August 12, 2019

Description
Notes
Code

Now we can write a function that takes a list of orders and gives you the whole list of ingredients you'll need to complete all of them.

Buy this course to view the notes.
Buy this course to view the code.

Next Lesson

3 min

Making one shopping trip

Let's now do one big shopping trip after we fetch the orders.

Course: Introduction to Clojure v2

0 / 60
0 / 60
 
Lessons
 
Introduction
free  
12 min 
 
Introducing X5 and JC
free  
2 min 
 
Working with the REPL
free  
14 min 
 
Defining functions
 
7 min 
 
Defining a bake-cake function
 
2 min 
 
Conditionals
 
10 min 
 
Defining scooped?
 
2 min 
 
Defining squeezed?
 
3 min 
 
Defining simple?
 
1 min 
 
Defining ingredient types
 
11 min 
 
Looping a number of times
 
10 min 
 
Using the plural functions
 
2 min 
 
Variadic functions
 
15 min 
 
Baking with variadic functions
 
2 min 
 
Bake cookies function
 
2 min 
 
Day 1 Conclusion
 
2 min 
 
Running Leiningen projects
 
11 min 
 
Error function
 
11 min 
 
Refactoring errors
 
4 min 
 
Bakery locations
 
14 min 
 
Scooped?, squeezed?, and simple? refactor
 
2 min 
 
Fetching ingredients
 
9 min 
 
Fetch ingredients generic
 
3 min 
 
Maps
 
7 min 
 
Fetching a shopping list
 
10 min 
 
Refactoring fetch-list
 
10 min 
 
Refactoring locations
 
9 min 
 
A day at the bakery
 
20 min 
 
Analyzing a day at the bakery
 
3 min 
 
Functional programming
 
10 min 
 
Into
 
6 min 
 
multiply-ingredients
 
7 min 
 
order to ingredients
 
5 min 
 
orders to ingredients
 
7 min 
 
Making one shopping trip
 
3 min 
 
Making one delivery
 
12 min 
 
Day 2 conclusion
 
3 min 
 
Day 3
 
2 min 
 
Add cocoa
 
2 min 
 
Baking brownies
 
6 min 
 
Analyzing recipes
 
6 min 
 
Starting the database
 
2 min 
 
Perform
 
1 min 
 
Mix step
 
1 min 
 
Pouring and baking
 
1 min 
 
Adding ingredients
 
7 min 
 
Bake recipe
 
4 min 
 
Generic bake function
 
3 min 
 
Adding all recipes
 
5 min 
 
Cleaning up order to ingredients
 
6 min 
 
Ingredients in the database
 
3 min 
 
Refactoring scooped, squeezed, and simple
 
2 min 
 
Generic fetch ingredient
 
9 min 
 
Refactoring fetch-list (again)
 
10 min 
 
Make storage-location more useful
 
4 min 
 
Redefining add
 
9 min 
 
Defining actions
 
4 min 
 
Refactoring perform
 
4 min 
 
Conclusions
 
5 min 
 
Appendix: Creating a Leiningen project
 
10 min 

Footer CTA

Get the newsletter for free

The PurelyFunctional.tv Newsletter is a weekly email to inspire functional programmers.

Enter your email address to receive emails about Clojure and Functional Programming. These include the weekly newsletter and other great offers. You can unsubscribe any time.

Copyright © 2021 LispCast and Eric Normand