IterableExtensions

public class IterableExtensions

Functions

Link copied to clipboard
public final List<Map<String, Integer>> getNgramCountsPerDoc(List<List<String>> $self, IntRange ngramRange)
Link copied to clipboard
public final Map<K, Integer> identityCount<K extends Any>(List<K> $self)
Link copied to clipboard
public final Map<K, V> mergeReduce<K extends Any, V extends Any>(List<Map<K, V>> $self, Function2<V, V, V> reduce)
public final Map<K, V> mergeReduce<K extends Any, V extends Any>(    Map<K, V> $self,     List<Map<K, V>> others,     Function2<V, V, V> reduce)
Link copied to clipboard
public final Unit mergeReduceInPlace<K extends Any, V extends Any>(    Map<K, V> $self,     List<Map<K, V>> others,     Function2<V, V, V> reduce)
Link copied to clipboard
public final List<String> ngrams(Array<String> $self, Integer n)
public final List<String> ngrams(List<String> $self, Integer n)

Properties

Link copied to clipboard
public final static IterableExtensions INSTANCE