Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phadej/denotational-frp

Denotational semantics for discrete-time FRP
https://github.com/phadej/denotational-frp

Last synced: 14 days ago
JSON representation

Denotational semantics for discrete-time FRP

Awesome Lists containing this project

README

        

# denotational-frp

> Denotational semantics for discrete-time FRP

## Example's output

```
concatMap . flatMap . zip
s1 = a.....b..............c
s2 = ..1.2.3
zip = ..a1..b2.............c3
= ....a.a.1.1.b.b.2.2....c.c.3.3
= [(4,'a'),(6,'a'),(8,'1'),(10,'1'),(12,'b'),(14,'b'),(16,'2'),(18,'2'),(23,'c'),(25,'c'),(27,'3'),(29,'3')]
concatMap . merge
s1 = a.....b..............c
s2 = ..1.2.3
merge = a.1.2.b..............c
= ..a.a.1.1.2.2.b.b.3.3..c.c
= [(2,'a'),(4,'a'),(6,'1'),(8,'1'),(10,'2'),(12,'2'),(14,'b'),(16,'b'),(18,'3'),(20,'3'),(23,'c'),(25,'c')]
fairScheduler
s1 = a.....b..............c
s2 = ..1.2.3
fair = ..a.a.1.1.b.b.2.2.3.3..c.c
= [(2,'a'),(4,'a'),(6,'1'),(8,'1'),(10,'b'),(12,'b'),(14,'2'),(16,'2'),(18,'3'),(20,'3'),(23,'c'),(25,'c')]
```