Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions about code golf challenges and/or submissions. DO NOT post code golf challenges themselves as questions here; those belong on the main site or in the Sandbox if you want to get feedback on them.
32
votes
Accepted
Should function literals be allowed when a function is asked for?
This is obviously a named function.
def g(h):
return h * 2
However, not all functions are named. This is an anonymous function, which is still a function.
lambda h: h * 2
You may easily notice …
7
votes
JavaScript Standards for IO
Here is my proposal for a standard:
Use alert if the code runs in web browser (for example if it modifies DOM), or just uses core JavaScript (as it's easy to claim it's a browser code in this case). …