Skip to content

Instantly share code, notes, and snippets.

@mrwonko
Created November 22, 2015 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrwonko/5df933b452097316b68b to your computer and use it in GitHub Desktop.
Save mrwonko/5df933b452097316b68b to your computer and use it in GitHub Desktop.
/*
main = interact(decode tail(lines) ctree . head . lines)
-- the parens here are misleading, this is really just:
main = interact(decode tail lines ctree . head . lines)
-- which comes down to this due to operator precedence:
main = interact((decode tail lines ctree) . head . lines)
*/
int main()
{
return interact( []( string input ){
return decode( tail, lines, ctree, head( lines( input ) ) );
} );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment