functionalscript / functionalscript Goto Github PK
View Code? Open in Web Editor NEWFunctionalScript is a purely functional subset of JavaScript
License: MIT License
FunctionalScript is a purely functional subset of JavaScript
License: MIT License
Remove NotEmpty
and Concat
.
The proposal is to use export default
only, because the JSON module will be asserted as a export default
module https://github.com/tc39/proposal-json-modules#proposed-semantics-and-interoperability
// config.f.mjs
export default {
"a": 5
}
import config from "config.f.mjs"
fjson
to djs
(data javascript), File extensions: .d.cjs
, .d.mjs
, .d.js
.{a:5}
module.exports = ...
const a = [3];module.exports = { a: a, b: a }
.
const obj = deserialize('...'); if (obj.a !== obj.b) { throw "" }
const _0=[3];module.exports={a:_0,b:_0}
const a = require('c.d.cjs');module.exports = { a: a, b: a}
. Deserialization only.import a from 'c.d.mjs';export default { a: a, b: a}
.const a = 5;module.exports = { a }
Optional, for fun, syntax sugar:
Move nanocom Rust library to natfoam/lib repo and remove the com directory.
It also can be used as a UTF8 string and an alternative to string type, since JS supports only UTF-16 strings.
This's an incorrect implementation because it doesn't convert UTF16 to UTF8 bytes.
Uint8Array.from(Array.from(text).map(letter => letter.charCodeAt(0)))
See
Can there be a samples
directory with an .md
file on how to run them? ("run npm install
, run npm run build
")?
I think, the following samples could be beneficial:
quickSort [] = []
quickSort (x:xs) = quickSort (filter (<x) xs)
++ [x] ++
quickSort (filter (>=x) xs)
+
, -
, /
, %
, ()
, maybe pi
constant, log2()
, sin()
, cos()
etc) - the stuff similar to what a typical hardware calculator has.pack
module)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.