This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package co.hyp3r.data; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import org.flowable.common.engine.impl.history.HistoryLevel; | |
| import org.flowable.common.engine.impl.interceptor.EngineConfigurationConstants; | |
| import org.flowable.engine.*; | |
| import org.flowable.engine.impl.cfg.ProcessEngineConfigurationImpl; | |
| import org.flowable.idm.api.IdmEngineConfigurationApi; | |
| import org.flowable.idm.api.IdmIdentityService; | |
| import org.flowable.job.service.impl.asyncexecutor.AsyncExecutor; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data Finder a = Finder { | |
| search :: Predicate a -> Maybe a | |
| -- you could imagine that a Finder | |
| -- has a set of As baked in, and that | |
| -- `search mypred` will just apply mypred | |
| -- to each element of the set until one | |
| -- passes | |
| } | |
| instance Functor Finder where |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Cache[K, V] { | |
| def put(key: K, value: V): Unit | |
| def get(key: K): Option[V] | |
| } | |
| class LruCache[K, V](capacity: Int) extends Cache[K, V] { | |
| /* | |
| A Least-Recently-Used cache is a cache with a fixed capacity: |
OlderNewer