Monadic Parser Combinators

node v8.12.0
version: 0.0.2
endpointsharetweet
// parseDino :: String -> String const parseDino = s => 'Triceratops' // change me! // change `parseDino` so that it can indicate failure in some way console.log(parseDino('Triceratops')) // should succeed console.log(parseDino('Triceratops is cool')) // should succeed console.log(parseDino('I like Triceratops')) // should fail console.log(parseDino('Pteranodons')) // should fail console.log(parseDino('T. Rex')) // should fail console.log(parseDino('')) // should fail
Some stuff, *italic*?
const foo = 5
Loading…

no comments

    sign in to comment