~/talk

What does the functor do on the tree?

Talkat Scalar Conference 2025 · 2025-03-27..03-28· [functional-programming, scala]
links:none on file
slides:none on file

Models a Scala enum tree as Branch/Leaf, implements an ASCII renderer that passes snapshot tests, and finds depth-first rendering fails on column characters so it uses a mutable queue for BFS labeling to record first/middle/last positions and then a recursive DFS to emit prefixes. Implements a Functor as a simple map over the tree to turn events/talks/speakers into strings. The pipeline runs end to end and produces the expected console tree output.

AI-written summary · about

  1. 0:00Introduction
  2. 2:10Project goal and tree visualization
  3. 6:23Fixing tree drawing with DFS
  4. 9:10Switching to BFS for nesting
  5. 11:36Labeling tree nodes for alignment
  6. 13:43Combining algorithms for any tree
  7. 16:10Functor to solve the problem
  8. 18:19Scala: FP and OOP approach
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.