-
-
Save puzza007/649579 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% If this occurs in something that's called often (and might qualify as an inner loop, | |
%% or might not) does either method have a speed advantage? | |
[A,B,C] = [get_foo(S) || S<-["a","b","c"], | |
% versus | |
A = get_foo("a"), | |
B = get_foo("b"), | |
C = get_foo("c"), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment