Solve the no connection puzzle: Difference between revisions

m
→‎JS ES6: Pruned out one unused function.
(→‎JS ES6: Updated primitives, tidied.)
m (→‎JS ES6: Pruned out one unused function.)
Line 1,862:
) : parseInt(Number(x))
) : x.codePointAt(0);
 
 
// justifyRight :: Int -> Char -> String -> String
const justifyRight = n =>
// The string s, preceded by enough padding (with
// the character c) to reach the string length n.
c => s => n > s.length ? (
s.padStart(n, c)
) : s;
 
 
9,655

edits