U = uniformMatroid(k, n)
The uniform matroid of rank k has as bases all size k subsets. The ground set is $\{0, ..., n-1\}$.
i1 : U35 = uniformMatroid(3,5) o1 = a "matroid" of rank 3 on 5 elements o1 : Matroid
i2 : peek U35 o2 = Matroid{bases => {set {0, 1, 2}, set {0, 1, 3}, set {0, 2, 3}, set {1, 2, 3}, set {4, 0, 1}, set {4, 0, 2}, set {4, 1, 2}, set {4, 0, 3}, set {4, 1, 3}, set {4, 2, 3}}} cache => CacheTable{...1...} groundSet => set {0, 1, 2, 3, 4} rank => 3
The object uniformMatroid is a method function.