skip to main
|
skip to sidebar
Beardy Box
Monday, 3 October 2011
Functional Fun with Python
Built in currying:
>>> from functools import partial
>>> binary = partial (int, base=2)
>>> binary('000001')
1
>>> binary('000011')
3
>>> binary('001011')
11
0 comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
Morning Brew Link
Blog Archive
▼
2011
(1)
▼
October
(1)
Functional Fun with Python
►
2010
(2)
►
June
(1)
The state information is invalid for this page and...
►
January
(1)
Another reason to use log4net rather than rolling ...
►
2009
(3)
►
December
(1)
Google Visualisations API
►
October
(1)
jQuery code to cycle background colors
►
January
(1)
ViewModel - the missing link?
►
2008
(3)
►
December
(1)
Branches and Tags and All That
►
September
(1)
It was worth writing those unit tests...
►
June
(1)
SyntaxHighlighter
►
2007
(9)
►
November
(1)
1 UI Control, 73 Unit Tests
►
October
(2)
Shuffling a List in C#
Generics Array Helper
►
September
(4)
Installing Infragistics NetAdvantage on Vista
Take a bath...
Enum
Tools
►
July
(1)
.Net Testing And Assemblies Signed with Strong Nam...
►
June
(1)
Welcome To Beardy Box
Addicted to
About Me
David Kemp
View my complete profile
0 comments:
Post a Comment