ambienttea / prolog-schemes Goto Github PK
View Code? Open in Web Editor NEWOptics and data transformation library for SWI Prolog
Optics and data transformation library for SWI Prolog
Calls where the schema is grounded could be compiled using goal_expansion
, eg.
mapped(list/list, plus(1), L, LL).
Could be translated to
maplist(maplist(plus(1)), L, LL).
Candidates:
So that the schema can start partially instantiated (is this even useful?)
See if it would be feasible to add lenses like filter
to access only elements satisfying some condition.
Possible example:
?- List = [-1, 2, -3, 4],
Nonnegative = [X]>>(X >= 0),
reduced(list / filter(Nonnegative) : int(+), List, Sum).
Sum = 6.
Output of dsl:translate
should be guaranteed to be a correct term describing a supported type.
One of the type checker packs could be used for this.
reduce(list(int(+)) / list(int(+)), [[1,2],[3,4]], X).
should be possible to be written as reduce(list / list(int(+)), [[1,2],[3,4]], X).
filtered(Schema, Pred, Collection, FilteredCollection)
Eventually filtered
can be changed to selected
or some such.
mapped
should have variants that accept 3 and more mapped structures, similar tomaplist
Tracing a program shows that some internall calls still unnecessarily re-translate the schema.
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.