MCPcopy Create free account
hub / github.com/Singular/Singular / lAppend

Function lAppend

Singular/lists.cc:151–156  ·  view source on GitHub ↗

2 * append v to list u */

Source from the content-addressed store, hash-verified

149* append v to list u
150*/
151BOOLEAN lAppend(leftv res, leftv u, leftv v)
152{
153 lists ul=(lists)u->CopyD();
154 res->data=(char *)lInsert0(ul,v,ul->nr+1);
155 return (res->data==NULL);
156}
157
158/*2
159* delete v-th element from list u

Callers

nothing calls this directly

Calls 2

lInsert0Function · 0.85
CopyDMethod · 0.45

Tested by

no test coverage detected