Package com.googlecode.aviator.runtime.function.seq
package com.googlecode.aviator.runtime.function.seq
-
ClassDescriptionBase class for min/max function.seq.add function to add all elements in other sequence into this one.seq.add function to add an element into seq.seq.array(class, ...elements) function to create a new array of special type and elements.seq.collector(seq) to create a collector for this sequence.seq.raw(collector) to retrieve the raw container of collector.Composite predicate function with invalid input: '&'invalid input: '&' or ||seq.contains_key(map,key) function to check if seq(should be map) contains the key.count(seq) to get seq's sizeReturns true if fun.call(x) is logical true for every x in sequence, else false.filter(seq,predicate) to filter seq by predicateseq.get function to retrieve a element by index(for list) or key(for map).include(seq,obj) function to check if seq contains objectinto(to_coll, from_coll) Adds all elements in from_coll into to_coll by seq.add(to_coll, element) and return the to_coll.seq.keys(map) to retrieve keys sequence of the map.Function to make predicate for filter functionseq.entry(key, value) function to create a Map.Entry instance.map(col,fun) function to iterate seq with functionseq.max function to find the largest element in sequence.seq.min function to find the smallest element in sequence.seq.array_of(class, len) function to create a new array of special type and size.seq.list function to new an array list.seq.map function to new a hash map.seq.set function to new a hash set.Returns false if fun.call(x) is logical true for any x in sequence, else true.A predicate functionseq.put function to set a element value by index(for list) or key(for map).reduce(col,fun,init) function to reduce seq with function and a initial value valueseq.add function to add an element into seq.reverse(seq) to reverse an array or list in place.Returns the first logical true value of fun.call(x) for any x in sequence, else returns nil.sort(list, [comparator]) function to sort a java.util.List or array,return a sorted duplicate objectseq.vals(map) to retrieve values sequence of the map.seq.collector(seq) to create a collector for this sequence.