Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomquist/DebugView
Playground to visualize functional programming with sequences
https://github.com/tomquist/DebugView
Last synced: 25 days ago
JSON representation
Playground to visualize functional programming with sequences
- Host: GitHub
- URL: https://github.com/tomquist/DebugView
- Owner: tomquist
- Created: 2017-11-04T14:53:49.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T14:14:17.000Z (over 5 years ago)
- Last Synced: 2024-04-22T12:31:19.871Z (8 months ago)
- Language: Swift
- Size: 984 KB
- Stars: 37
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- Awesome-Swift-Playgrounds - Functional Debug View - Playground to visualize functional programming with graphical sequences. 🍁 🌟 (Theoretical Computer Science / Functional Reactive Programming)
README
# DebugView
This playground visualizes functional programming with sequences using [Graphviz](http://www.graphviz.org/). 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](https://brew.sh/):
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](https://github.com/tomquist/DebugView/raw/master/Demo.gif)