Skip to content

Constant functions #6253

@nthiery

Description

@nthiery

This trivial patch adds basic support for constant functions

Such a function could be written as lambda x: constant, but that's not picklable. Besides, this should eventually be cythoned for speed.

Prerequisite for #4326.

CC: @sagetrac-sage-combinat @mwhansen @jasongrout

Component: misc

Keywords: constant functions

Author: Nicolas M. Thiéry

Reviewer: Florent Hivert, Minh Van Nguyen

Merged: Sage 4.1.2.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/6253

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions