All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aya.guest0x0.syntax.FnLike Maven / Gradle / Ivy

package org.aya.guest0x0.syntax;

import kala.collection.SeqView;
import kala.collection.immutable.ImmutableSeq;
import org.aya.guest0x0.util.LocalVar;
import org.aya.guest0x0.util.Param;
import org.jetbrains.annotations.NotNull;

public interface FnLike {
  @NotNull ImmutableSeq> telescope();
  @NotNull Term result();
  default @NotNull SeqView teleVars() {
    return telescope().view().map(Param::x);
  }
  default @NotNull SeqView teleRefs() {
    return teleVars().map(Term.Ref::new);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy