
org.protelis.lang.util.Op3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protelis Show documentation
Show all versions of protelis Show documentation
Practical aggregate programming, hosted in Java
/*******************************************************************************
* Copyright (C) 2014, 2015, Danilo Pianini and contributors
* listed in the project's build.gradle or pom.xml file.
*
* This file is part of Protelis, and is distributed under the terms of
* the GNU General Public License, with a linking exception, as described
* in the file LICENSE.txt in this project's top directory.
*******************************************************************************/
package org.protelis.lang.util;
import gnu.trove.list.TIntList;
import gnu.trove.list.array.TIntArrayList;
import java8.util.J8Arrays;
import java.util.Map;
import java8.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import org.danilopianini.lang.TriFunction;
import org.protelis.lang.datatype.Field;
import org.protelis.lang.datatype.Fields;
/**
* Collection of functions and helper methods for ternary syntactic operators.
*/
public enum Op3 {
/**
* Functional mux.
*/
MUX("mux", Op3::mux);
private static final Map MAP = new ConcurrentHashMap<>();
private final TriFunction
© 2015 - 2025 Weber Informatics LLC | Privacy Policy