|
Download listprologinterpreter/D2T_docs.md from luciangreen/phil_algs: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/datasets/luciangreen/phil_algs/resolve/main/listprologinterpreter/D2T_docs.md
- Command line
-
hf download hf://datasets/luciangreen/phil_algs/listprologinterpreter/D2T_docs.md
-
curl -L -o D2T_docs.md https://huggingface.co/datasets/luciangreen/phil_algs/resolve/main/listprologinterpreter/D2T_docs.md
1.1 kB
Data to Types Documentation
- Data to Types is an algorithm that converts data into a type statement, for example:
?- data_to_types([[1],"a",1],[],T).
T = [[[t, brackets], [[t, number]]], [t, string], [t, number]].
?- data_to_types([1,["a"],1],[],T).
T = [[t, number], [[t, brackets], [[t, string]]], [t, number]].
?- data_to_types([1,"a",[1]],[],T).
T = [[t, number], [t, string], [[t, brackets], [[t, number]]]].
Getting Started
Please read the following instructions on how to install the project on your computer for converting data to types.
Prerequisites
None.
Installing
Please download and install SWI-Prolog for your machine at https://www.swi-prolog.org/build/.
Download the file data_to_types.pl to your machine.
Use in the same way as the examples above.
Authors
Lucian Green - Initial programmer - Lucian Academy
License
I licensed this project under the BSD3 License - see the LICENSE.md file for details