mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-10 06:51:13 +00:00
Medium syndication information
This commit is contained in:
parent
e5a96d735a
commit
c5ff5538a6
276 changed files with 371 additions and 80 deletions
|
@ -1,9 +1,13 @@
|
|||
---
|
||||
title: "Immutable Traversals with Unfold"
|
||||
date: 2022-11-12T21:27:42-05:00
|
||||
date: 2022-11-12 21:27:42-05:00
|
||||
draft: false
|
||||
tags: ["Functional Programming", "Scala"]
|
||||
math: false
|
||||
medium_enabled: true
|
||||
medium_post_id: ddffc5b14ef9
|
||||
tags:
|
||||
- Functional Programming
|
||||
- Scala
|
||||
title: Immutable Traversals with Unfold
|
||||
---
|
||||
|
||||
Let's consider the following binary tree:
|
||||
|
@ -107,7 +111,4 @@ def DFS3(node: BinNode): Iterator[BinNode] =
|
|||
val next_s = s.init ++ crnt_node.right ++ crnt_node.left
|
||||
Some(crnt_node, next_s)
|
||||
)
|
||||
```
|
||||
|
||||
|
||||
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue