Jump to content

Word break problem: Difference between revisions

m
→‎{{header|Javascript}}: (Minor simplification by currying)
(→‎{{header|Javascript}}: Disaggregated tokenTrees on model of Python draft)
m (→‎{{header|Javascript}}: (Minor simplification by currying))
Line 210:
wds.includes(s) ? (
[Node(s, [])]
) : bindList(wds, w => next(s, w));
const next = (s, => w) =>
s.startsWith(w) ? (
parse(w, go(s.slice(w.length)))
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.