matonix / pfds Goto Github PK
View Code? Open in Web Editor NEWLearning "Purely Functional Data Structures" in Japanese
License: BSD 3-Clause "New" or "Revised" License
Learning "Purely Functional Data Structures" in Japanese
License: BSD 3-Clause "New" or "Revised" License
ELの初期化をちゃんとやれば、Queue の Int は隣のリストの長さになるはず
createTree が同じ木を造っている。
小さい木を最初に渡して、pの代わりに木を渡そう。
どうやら、windows マシン上の環境の問題らしい。
consTree 時に、 link を無条件で呼んでいるが、Treeのサイズが同じであることを保証してやれねばならない
lookup, update では、
state の中身も見ないといけない
方針
DeletableHeap h a = DeletableHeap (h a) (h a) とやって、Heap h => Heap (DeletableHeap h) みたいな感じに
removeMinTree で、One や Two の時に各ツリーの最小値比較をやらないといけない
tail では、fst のリストにマッチするときは、そのリストだけ tail する
Zero に関する言明は不要
回転が起こる場合の、drop を考慮したコスト計算
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.