138 karma · joined December 3, 2016
Instead, they're roughly "functions from modules to modules": https://dev.realworldocaml.org/functors.html. Functors allow you to replicate much of what classes/objects in an OO language offer, but with static instead of dynamic dispatch.
Also, the idea that local interests should have the power to block community changes is directly responsible for many prescient issues, like the lack of housing in California causing sky-high home and rental prices. See e.g. a review of the book Golden Gates, which touches on NIMBY-ism in California: https://www.nytimes.com/2020/02/13/business/economy/housing-...
> ... a browser-based WebTorrent client or "web peer" can only connect to other clients that support WebTorrent/WebRTC.
(from https://webtorrent.io/faq)
This essentially splinters the world into the bittorrent and webtorrent halves, which makes it far less useful.
If a < min, then the sorted array is [a, min, max]. The median is min, which is a clamped to min.
If a > max, then the sorted array is [min, max, a]. The median is max, which is a clamped to max.
For instance, in China WeChat Pay only charges 0.1% above 10,000 RMB (from what various articles say). Square is not even in the same category, charging 2.6% + 10¢. And you don't need to buy any equipment to use WeChat Pay; you just need to pull up a QR code on your phone.