object ListRef extends StoreOperation
(define (list-ref l index) (if (pair? l) (if (= index 0) (car l) (list-ref (cdr l) (- index 1))) (error "list-ref applied to a non-list")))
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ListRef
- StoreOperation
- Primitive
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
def
call(l: Abs, index: Abs, store: Store[Addr, Abs]): MayFail[(Abs, Store[Addr, Abs], Set[Effect[Addr]])]
- Definition Classes
- ListRef → StoreOperation
-
def
call[Exp, Time](fexp: Exp, args: List[(Exp, Abs)], store: Store[Addr, Abs], t: Time)(implicit arg0: Expression[Exp], arg1: Timestamp[Time]): MayFail[(Abs, Store[Addr, Abs], Set[Effect[Addr]])]
Calls the primitive.
Calls the primitive.
- returns
either an error, or the value returned by the primitive along with the updated store
- Definition Classes
- StoreOperation → Primitive
-
def
call(store: Store[Addr, Abs]): MayFail[(Abs, Store[Addr, Abs], Set[Effect[Addr]])]
- Definition Classes
- StoreOperation
-
def
call[Exp](fexp: Exp, arg: (Exp, Abs), store: Store[Addr, Abs])(implicit arg0: Expression[Exp]): MayFail[(Abs, Store[Addr, Abs], Set[Effect[Addr]])]
- Definition Classes
- StoreOperation
-
def
call[Exp](fexp: Exp, arg1: (Exp, Abs), arg2: (Exp, Abs), store: Store[Addr, Abs])(implicit arg0: Expression[Exp]): MayFail[(Abs, Store[Addr, Abs], Set[Effect[Addr]])]
- Definition Classes
- StoreOperation
-
def
call(arg: Abs, store: Store[Addr, Abs]): MayFail[(Abs, Store[Addr, Abs], Set[Effect[Addr]])]
- Definition Classes
- StoreOperation
-
def
call(args: List[Abs], store: Store[Addr, Abs]): MayFail[(Abs, Store[Addr, Abs], Set[Effect[Addr]])]
- Definition Classes
- StoreOperation
- def listRef(l: Abs, index: Abs, visited: Set[(Abs, Abs)], store: Store[Addr, Abs]): MayFail[(Abs, Set[Effect[Addr]])]
-
val
name: String
The name of the primitive
The name of the primitive
- Definition Classes
- StoreOperation → Primitive
-
val
nargs: Option[Int]
- Definition Classes
- StoreOperation