Skip to main content

list manipulation - Selecting a sublist based on Length



If you have a simple list of lists as follows:


test = {{1, 2}, {4, 5, 6, 7}, {5, 4, 3}}

How do you ask Mathematica to return the sublist of greatest length?


I've been trying to write a Select command using pure functions without success.




Comments