tomquist / DebugView

Playground to visualize functional programming with sequences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DebugView

This playground visualizes functional programming with sequences using Graphviz. You get a visualization of what happens to each element in each call.

Prerequisites

Graphviz is required for rendering of the graph. Install it, e.g. using Homebrew:

brew install graphviz

Supported operations

Currently the following operations are supported:

  • map
  • flatMap
  • filter
  • reduce
  • sorted
  • first(where:)
  • first
  • dropFirst
  • drop(while:)
  • prefix(while:)
  • prefix(maxLength:)
  • suffix(maxLength:)
  • suffix(from:)
  • contains(where:)
  • contains(element:)
  • max
  • min
  • reversed
  • joined
  • joined(separator:)

Demo

Demo

About

Playground to visualize functional programming with sequences


Languages

Language:Swift 100.0%