package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
MemoizedFunc extends AnyRef
Transforms a given function into memoized equivalent function.
Transforms a given function into memoized equivalent function. Memoization is implemented by computing function f only once for each argument value and storing computed result in a hash table, so that it can be later retrieved on repeated invocations with the same argument. The cache of computed results can be cleared by calling
reset
.
Value Members
-
val
MaxArrayLength: Int
Maximum length of an allocatable array.
-
final
def
safeConcatArrays_v5[A](arr1: Array[A], arr2: Array[A])(implicit tA: ClassTag[A]): Array[A]
Concatenate two arrays checking length limit of the resulting array.
Concatenate two arrays checking length limit of the resulting array. Should be used in implementation of Coll operations of v5.0 and above.
-
final
def
safeNewArray[A](len: Int)(implicit tA: ClassTag[A]): Array[A]
Allocates a new array with
len
items of typeA
.Allocates a new array with
len
items of typeA
. Should be used instead ofnew Array[A](n)
orArray.ofDim[A](n)
- object CollectionUtil
- object Extensions
- object GraphUtil
- object StringUtil