Functional programming
Rustom Mody
rustompmody at gmail.com
Mon Mar 3 08:51:21 EST 2014
On Monday, March 3, 2014 7:18:00 PM UTC+5:30, Rustom Mody wrote:
> Unfortunately modern versions give a less helpful error message
> '++' is list-append, '?' is the prompt
> ? [1,2] + [[3,4],[5]]
Whoops Wrong cut-paste!
? [1,2] ++ [[3,4],[5]]
ERROR: Type error in application
*** expression : [1,2] ++ [[3,4],[5]]
*** term : [1,2]
*** type : [Int]
*** does not match : [[Int]]
?
More information about the Python-list
mailing list