mirror of
https://github.com/coot/free-category.git
synced 2024-10-26 15:15:00 +03:00
Swapped ListTr for Queue
Queue performes ~66% better thaan ListTr, and is more prone for foldl / foldr than 'Cat'.
This commit is contained in:
parent
2e29c220a0
commit
450b78f918
@ -31,14 +31,20 @@ module Control.Category.Free
|
||||
, arrCat
|
||||
, foldCat
|
||||
|
||||
-- * Real time Queue
|
||||
, Queue (ConsQ, NilQ)
|
||||
, consQ
|
||||
, snocQ
|
||||
, unconsQ
|
||||
, foldNatQ
|
||||
, foldrQ
|
||||
, foldlQ
|
||||
|
||||
-- * Free category (CPS style)
|
||||
, C (..)
|
||||
, toC
|
||||
, fromC
|
||||
|
||||
-- * Naive version of a free category
|
||||
, ListTr (..)
|
||||
|
||||
-- * Opposite category
|
||||
, Op (..)
|
||||
, hoistOp
|
||||
|
Loading…
Reference in New Issue
Block a user