+ 11
can any (python) program be written as 1-liner?
Up to now most challenges got at least one answer as 1-liner. i asked myself, if there is any Challenge that cant be done with one line. if yes, which attributes does this prog have? except: interactive programs like eliza...
3 odpowiedzi
+ 3
Not only it DOES but it SHOULD ! Ok more seriously using functional programming you can code anything as a function. Google turing complete and functional programming.
+ 4
@VcC so the answer is yes for all languages serving l
functional programming.
+ 1
Even for non functionnal languages google IOCCC for gmorious examples in C