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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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
Results tagged with Search options user 128719

Function is a block of code which performs a specific task.

1
vote
In general once you have removed any side effects from functions, ideally there shouldn't have been any in the first place, if the functions are performing identical tasks then, in dynamic or duck … typing languages, there is no reason not to refactor into a single function. Likewise, if a large portion of what two or more functions are doing, there can be a very good case for removing that/those …
answered Mar 13 '17 by Steve Barnes
12
votes
The pair of concepts that you are looking for are mutable/immutable parameters and in-place/returning of results. In your examples: You have to set the string to "string dot replace", because the re …
answered Mar 8 '17 by Steve Barnes