wtypei second question

4 views
Skip to first unread message

Joseph Park

unread,
Nov 26, 2011, 1:56:38 PM11/26/11
to byu-cs-330-Fall-2011
Are we to assume that cons takes in a type T1 as an argument and a
list of type T1 or can the second argument in the cons be of a
different type (i.e. T2)?

(cons T1 list(T1)) or (cons T1 list(T2)) or even (cons T1 (cons T2
(cons T3 empty)))

Jay McCarthy

unread,
Nov 26, 2011, 3:11:11 PM11/26/11
to byu-cs-330...@googlegroups.com, byu-cs-330-Fall-2011
Lists are homogeneous

Sent from my iPhone

Reply all
Reply to author
Forward
0 new messages