com.github.basking2.sdsai.itrex.functions.StringSplitFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdsai-itrex Show documentation
Show all versions of sdsai-itrex Show documentation
An S-Expression inspiried library focused on iterators.
package com.github.basking2.sdsai.itrex.functions;
import com.github.basking2.sdsai.itrex.EvaluationContext;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
public class StringSplitFunction extends AbstractFunction2> {
@Override
protected List applyImpl(final String pattern, final String str, final Iterator> rest, final EvaluationContext context) {
return Arrays.asList(str.split(pattern));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy