History of Idiom 20 > diff from v36 to v37
Edit summary for version 37 by :
Linked to idiom #126 [Multiple return values]
Linked to idiom #126 [Multiple return values]
↷
Version 36
2016-02-24, 15:45:31
Version 37
2016-03-21, 23:40:07
Idiom #20 Return two values
Implement a function search which looks for item x in a 2D matrix m.
Return indices i, j of the matching cell.
Think of the most idiomatic way in the language to return the two values at the same time.
Idiom #20 Return two values
Implement a function search which looks for item x in a 2D matrix m.
Return indices i, j of the matching cell.
Think of the most idiomatic way in the language to return the two values at the same time.