- sequences that can also be used for async/await
- prototype-based inheritance
- metamethods
- simple embedding with a great binding API
- and a useful debugger
const Seq = require("Seq.mnd");
const randomApi =
"https://www.random.org/decimal-fractions/?num=1&dec=9&col=1&format=plain";
Async.start(seq() {
var numberTasks = Seq.range(0, 10)
|> Seq.select(() -> Http.get(randomApi))
|> Seq.toArray();
var numbers = yield Task.whenAll(numberTasks);
var total = numbers
|> Seq.select(s -> Json.deserialize(s))
|> Seq.aggregate(0, (acc, n) -> acc + n);
printLn("average = {0}".format(total / 10));
});
Async.runToCompletion();
Mond is available on NuGet. To install it, use the following command in the Package Manager Console.
PM> Install-Package Mond
The remote debugger is also available on NuGet.
PM> Install-Package Mond.RemoteDebugger
Please check the wiki for documentation.
.NET | Mono |
---|---|