qfpl / hedgehog-fn Goto Github PK
View Code? Open in Web Editor NEWFunction generation for Hedgehog
License: Other
Function generation for Hedgehog
License: Other
I want something like
data NT :: (Type -> Type) -> (Type -> Type) -> Type
appNT :: NT f g -> f a -> g a
and some way to generate arbitrary values of type NT f g
. Any idea how this might be done?
There were a couple of questions in the reddit thread about this kind of idea.
I think it's cool but I don't know if it's possible. The main example of monotonicity requires knowledge of the entire domain and codomain, which isn't captured by a -> Gen b
anyway. At the very least we need to be aware of the history of inputs to the function.
The memo-trie approach works by lazily enumerating all the possible inputs to the function, so if we wanted to generate a monotonic function then somehow each input would have to have a knot that knows about all the other inputs. I don't know that it works.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.