Class VecHelper

java.lang.Object
org.kink_lang.kink.VecHelper

public class VecHelper extends Object
The helper of vec vals.
  • Method Details

    • of

      public VecVal of(List<? extends Val> elems)
      Returns a vec containing the elems.
      Parameters:
      elems - the elems of the vec.
      Returns:
      a vec.
    • of

      public VecVal of(Val[] vals, int from, int to)
      Returns a new vec from the range of the array.
      Parameters:
      vals - the array of vals.
      from - the from index of the range (inclusive).
      to - the to index of the range (exclusive).
      Returns:
      a new vec.
    • of

      public VecVal of()
      Returns a new empty vec.
      Returns:
      a new empty vec.
    • of

      public VecVal of(Val e0)
      Returns a new vec.
      Parameters:
      e0 - the #0 elem.
      Returns:
      a new vec.
    • of

      public VecVal of(Val e0, Val e1)
      Returns a new vec.
      Parameters:
      e0 - the #0 elem.
      e1 - the #1 elem.
      Returns:
      a new vec.
    • of

      public VecVal of(Val e0, Val e1, Val e2)
      Returns a new vec.
      Parameters:
      e0 - the #0 elem.
      e1 - the #1 elem.
      e2 - the #2 elem.
      Returns:
      a new vec.
    • of

      public VecVal of(Val e0, Val e1, Val e2, Val e3)
      Returns a new vec.
      Parameters:
      e0 - the #0 elem.
      e1 - the #1 elem.
      e2 - the #2 elem.
      e3 - the #3 elem.
      Returns:
      a new vec.
    • of

      public VecVal of(Val... elems)
      Returns a new vec.
      Parameters:
      elems - the elems.
      Returns:
      a new vec.