Skip to main content
Tweeted twitter.com/#!/StackMma/status/166037783536869377
added 4 characters in body
Source Link
Arnoud Buzing
  • 9.8k
  • 2
  • 49
  • 58

If you have a simple list of lists as follows:

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

How do you ask MathematicaMathematica to return the sublist of greatest Lengthlength?

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

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.

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.

added 4 characters in body
Source Link
Arnoud Buzing
  • 9.8k
  • 2
  • 49
  • 58

If you have a simple list of lists as follows:

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

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.

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.

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.

Source Link
Todd Allen
  • 2.1k
  • 5
  • 29
  • 32

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.