Syndicated to Medium

This commit is contained in:
Brandon Rozek 2023-01-25 13:20:29 -05:00
parent 17e7209a41
commit bfa4e52c0b
No known key found for this signature in database
GPG key ID: 26E457DA82C9F480
15 changed files with 95 additions and 75 deletions

View file

@ -1,10 +1,13 @@
---
title: "Different Views of Fold and Their Combinations"
date: 2022-11-09T17:45:26-05:00
date: 2022-11-09 17:45:26-05:00
draft: false
tags: ["Scala", "Functional Programming"]
math: true
medium_enabled: true
medium_post_id: 13bdb8690a4c
tags:
- Scala
- Functional Programming
title: Different Views of Fold and Their Combinations
---
Fold is a functional programming pattern that operates over some sequence with a binary operation and a starting value. There are two variants:
@ -150,4 +153,4 @@ l1.foldLeft(id_outer)((c1, n1) =>
[^1]: Thanks Clare for thinking of this example!
[^1]: Thanks Clare for thinking of this example!