3 ms·
While you're at it why don't you fix: (needle, haystack), (haystack, needle)? :P
by 1qaz2wsx3edc 13y ago
While you're at it why don't you fix: (needle, haystack), (haystack, needle)? :P
- Domenic_S 13y agoWith array functions, the needle is first. With string functions, the haystack is first. https://gist.github.com/salathe/1672543 https://gist.github.com/salathe/1672543
- 1qaz2wsx3edc 13y agoThis still doesn't convince me it was ever a beneficial design.
- Domenic_S 13y agoI didn't claim it was beneficial, just consistent.
- turbo_pax 13y agoAre you sure it's that consistent? I just feel like there's some function hiding somewhere that breaks this rule.
- e-tron 13y agoOr even use a proper IDE to code other than gedit/notepad !!