mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
Syndicated to Medium
This commit is contained in:
parent
17e7209a41
commit
bfa4e52c0b
15 changed files with 95 additions and 75 deletions
|
@ -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!
|
Loading…
Add table
Add a link
Reference in a new issue