Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
e03c879b
Commit
e03c879b
authored
May 03, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test typed lambda expressions
parent
625963ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
tests/run/lambda_T195.pyx
tests/run/lambda_T195.pyx
+15
-1
No files found.
tests/run/lambda_T195.pyx
View file @
e03c879b
...
...
@@ -27,6 +27,15 @@ __doc__ = u"""
>>> make_lambda_lambda(1)(2)(4)
7
>>> make_typed_lambda_lambda(1)(2)(4)
7
>>> partial_lambda = make_typed_lambda_lambda(1)(2)
>>> partial_lambda(4)
7
>>> partial_lambda(5)
8
"""
#cy_identity = lambda x:x
...
...
@@ -51,4 +60,9 @@ def make_const_calc1_xy(x):
return
lambda
y
:
x
*
y
+
(
1
*
2
*
3
+
5
)
def
make_lambda_lambda
(
x
):
return
lambda
y
:
lambda
z
:
x
+
y
+
z
return
lambda
y
:
\
lambda
z
:
x
+
y
+
z
def
make_typed_lambda_lambda
(
int
x
):
return
lambda
int
y
:
\
lambda
int
z
:
x
+
y
+
z
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment