Word wheel: Difference between revisions
m
→{{header|JavaScript}}
m (→{{header|JavaScript}}: Updated primitives, tidied.) |
|||
Line 1,608:
return lexemes.filter(w => {
const cs =
return 2 < cs.length && cs.every(
c => wSet.has(c)
) &&
wheelFit(wheel, cs)
);
Line 1,637:
// main :: IO ()
const main = () =>
▲ ));
// ---------------- GENERIC FUNCTIONS ----------------
// lines :: String -> [String]
Line 1,688 ⟶ 1,677:
// sort :: Ord a => [a] -> [a]
const sort = xs =>
Array.from(xs).
Line 1,697 ⟶ 1,685:
s.toLocaleLowerCase();
// MAIN ---
|