lang: funcs: simple, simplepoly, operator: Misc fix ups for lambdas

These core functions need some small fixups to bring us up to our
lambdas branch.

Co-authored-by: Samuel Gélineau <gelisam@gmail.com>
This commit is contained in:
James Shubin
2023-09-25 17:23:41 -04:00
parent a1a23b66c8
commit d1f1ed8957
3 changed files with 24 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ type WrappedFunc struct {
// String returns a simple name for this function. This is needed so this struct
// can satisfy the pgraph.Vertex interface.
func (obj *WrappedFunc) String() string {
return fmt.Sprintf("%s@%p", obj.Name, obj) // be more unique!
return fmt.Sprintf("%s @ %p", obj.Name, obj) // be more unique!
}
// ArgGen returns the Nth arg name for this function.