Scala Library
|
|
scala/collection/mutable/ArrayOps.scala
]
abstract
class
ArrayOps[T]
extends
ArrayLike[T, Array[T]]Method Summary | |
def
|
flatten
[U](implicit asArray : (T) => Array[U]) : Array[U]
Flattens a two-dimensional array by concatenating all its rows
into a single array
|
def
|
transpose
[U](implicit asArray : (T) => Array[U]) : Array[Array[U]]
Transposes a two dimensional array
|
Methods inherited from ArrayLike | |
deep, deepToString, deepMkString, deepMkString, deepEquals |
Methods inherited from IndexedSeqLike | |
update (abstract), thisCollection, toCollection, view, view |
Methods inherited from IndexedSeqLike | |
iterator, isEmpty, foreach, forall, exists, find, foldLeft, foldRight, reduceLeft, reduceRight, zip, zipWithIndex, slice, head, tail, last, init, take, drop, takeRight, dropRight, splitAt, takeWhile, dropWhile, span, sameElements, copyToArray, lengthCompare, segmentLength, indexWhere, lastIndexWhere, reverse, reverseIterator, startsWith, endsWith |
Methods inherited from SeqLike | |
length (abstract), apply (abstract), size, isDefinedAt, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reverseMap, reversedElements, startsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, updated, +:, :+, padTo, sortWith, sortWith, sortBy, toSeq, indices, hashCode, equals, toString, findLastIndexOf, equalsWith, containsSlice, projection |
Methods inherited from IterableLike | |
elements, toIterable, zipAll, toStream, canEqual, first, firstOption |
Methods inherited from TraversableLike | |
newBuilder (abstract), repr, nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, /:, :\, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, lastOption, copyToBuffer, copyToArray, toArray, toList, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter |
Methods inherited from AnyRef | |
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
Scala Library
|
|