Skip to content

Commit

Permalink
Document Expr.map
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Jun 26, 2015
1 parent 3499f5b commit 4ce259f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions squmfit/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def parameters(self):
def map(self, f):
"""
Lift a function into an :class:`Expr`.
:type f: Function of type `A -> B`
:param f: The function to lift.
:returns: Given an :class:`Expr` evaulating to a value of type `A` and a function `A -> B`,
returns an :class:`Expr` of type `B`.
"""
return FuncExpr(f, self)

Expand Down

0 comments on commit 4ce259f

Please sign in to comment.