FLINT3.7.0-dev

fexpr_arg, fexpr_view_arg

Synopsis#include <flint/fexpr.h>
void fexpr_arg(fexpr_t res, const fexpr_t expr, slong i)source
void fexpr_view_arg(fexpr_t res, const fexpr_t expr, slong i)source

For a call f(e_1, \ldots, e_n), sets res to a copy of, or a view of, the argument e_{i+1} (indices start at 0 and must satisfy 0 \le i < n). Throws an exception if expr is an atom. Access takes O(1) steps for calls with more than four arguments, thanks to the index.

Guides#

Cite this page

The FLINT team, “fexpr_arg, fexpr_view_arg (fexpr.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fexpr/fexpr_arg.html (generated 2026-10-20).