...With Java 8:
// Sort the characters by its frequency based on the word 'Mississippi' case-insensitively
RubyArray<String> word = ra("Mississippi".split("(?!^)"));
String result = word.map((c) -> {
return c.toLowerCase();
}).sortBy((c) -> {
return word.count(c);
}).uniq().join();
p(result); // "mpis"
With Java 6:
// Sort the characters by its frequency based on the word 'Mississippi' case-insensitively
final RubyArray<String> word = newRubyArray("Mississippi".split("(?!^)"));
String result = word.map(new TransformBlock<String, String>() {
public String yield(String c) {
return c.toLowerCase();
}
}).sortBy(new TransformBlock<String, Integer>() {
public Integer yield(String c) {
return word.count(c);
}
}).uniq().join();
p(result); // "mpis"
Shell.NET is a set of console and winform applications written in C#. It features nearly 100 applications ranging from classical Unix applications like basename, cal, grep, tr, uniq, and wc, to some very unique tools like RunScript or TextTransform.
Picnix is a set of Unix-like commands for Windows. It has: cat, chmod, cp, df, diff, du, fgrep, grep, head, ls, more, mv, psort, rm, sleep, strings, tail, tee, touch, uniq, wc, which, and pmake, which is largely compatible with Gnu make, and faster.
Provide a plugabble and configurable alternative to UNIX tools like grep, awk, tail, head, cut, sort, uniq or even some perl based scripts in a Java environment. A bit like what Apache Ant means to good old make.
Deploy in 115+ regions with the modern database for every enterprise.
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.