java.lang.Object
org.kink_lang.kink.internal.intrinsicsupport.BranchSupport

public class BranchSupport extends Object
Funs for branch.
  • Method Details

    • condNotBool

      public static FunVal condNotBool(Vm vm, int index, Val actual)
      Returns a nullary fun raising cond-result-not-bool error.
      Parameters:
      vm - the vm.
      index - the arg index of the cond fun.
      actual - the actual result of the cond fun.
      Returns:
      a nullary fun raising cond-result-not-bool error.
    • noMatchingCond

      public static FunVal noMatchingCond(Vm vm)
      Returns a nullary fun raising no-matching-cond error.
      Parameters:
      vm - the vm.
      Returns:
      a nullary fun raising no-matching-cond error.