Module Term.Pos
val at : t -> Position.t -> t
retrieve subterm at pos
- raises Invalid_argument
if the position is invalid
val replace : t -> Position.t -> by:t -> t
replace t pos ~by
replaces the subterm at positionpos
int
by the termby
. The two terms should have the same type.- raises Invalid_argument
if the position is not valid