Haskell Course - Lesson 6 - Recursion and Folds

IOG Academy

Publisher: Youtube

Published: Oct 20, 2022

Description:

language:en;Repo: https://github.com/input-output-hk/haskell-course Playlist: https://youtube.com/playlist?list=PLNEK_Ejlx3x1D9Vq5kqeC3ZDEP7in4dqb Canvas: https://iohk.instructure.com/enroll/3BAAGG Outline: 0:00 - Outline 0:50 - Why Recursion? 3:35 - Thinking Recursively (defining the sum function) 9:37 - Steps to create recursive functions (and product function) 13:20 - Defining the "and" function 16:35 - Defining the "length" function 18:16 - Defining the "reverse" function 19:52 - Defining the "drop" function 25:40 - Defining the "take" function 29:02 - Defining the "map" function 31:23 - Defining the "filter" function 34:00 - Extracting the "foldr" pattern 43:10 - The "++" operator 45:39 - The "foldl" function 51:11 - The "foldl'" function 54:03 - When to use foldr;foldl;and foldl' #haskell #recursion #foldr #foldl;Science & Technology