P28

ninetynine.P28
object P28

P28 - sorting a list of lists according to length of sublists.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
P28.type

Members list

Value members

Concrete methods

def lsort[A](l: List[List[A]]): List[List[A]]

Attributes

Returns

l sorted by the length of the lists

def lsortFreq[A : Ordering](l: List[List[A]]): List[List[A]]

lsortFreq - Generic function to sort a list of lists according to the frequency of the size of sublists.

lsortFreq - Generic function to sort a list of lists according to the frequency of the size of sublists.

Value parameters

l

list of lists to be sorted

Attributes

Returns

l sorted by the frequency of the length of the lists

Note

The type A must be sortable

Concrete fields

val logger: Logger