DebugView icon indicating copy to clipboard operation
DebugView copied to clipboard

Playground to visualize functional programming with sequences

trafficstars

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