Comments (3)
Most brain-dead list notation that doesn't require two distinct notations (e.g. :: and [x, y, ...] in Haskell).
from fluid.
In Prolog (and I think Erlang also) "cons" can be written [x|xs]
and you can write [x,y,z|xs]
for cons(x,cons(y,cons(z,xs)))
.
from fluid.
Ok, that's useful to know - thanks! That's what I've just implemented, but with "..." instead of "|" (reminiscent of ES6 spread notation).
fun mergesort xs →
match xs as {
[] → xs;
[x] → xs;
[x, y, ...xs'] →
match split xs as
(ys, zs) → merge (mergesort ys) (mergesort zs)
}
Implementing that for list patterns turned out to be quite tricky because the syntax of tries requires the pattern parser to be written in a continuation-passing style..gah.
from fluid.
Related Issues (20)
- Anonymously hosted web demo
- Toggle “related elements” within individual view
- Build graph imperatively
- `TableView`: decimal alignment
- `TableView`: column width independent of row visibility
- Data pane as scrollable viewport
- Distinct URL for each example
- Data pane: hover feedback on visualisation `mouseenter`
- Full screen on individual grid row
- Rectangular selection
- Legend entries linked to relevant subplots
- Change colours on visualisation to suit different requirements HOT 1
- Plot intervals/ranges in Y for a given X
- Two-column layout for data/visualisations
- Refresh selection information rather than rebuilding `div` each time
- Migrate rendering logic to PureScript side
- `BubbleChart` as generalised `ScatterPlot`
- Animate table row hide/reveal
- VSCode plugin
- `Aggregate` values in `BarChart` and `LineChart`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluid.