List examples
- [3,4,5];
[3,4,5] : int list
3::4::nil;
[3,4] : int list
(3::nil)::(4::5::nil)::nil;
[[3],[4,5]] : int list list;
[3,”hi there”];
Error: operator and operand don’t agreeoperator domain: int * int listoperand: int * string listin expression: (3 : int) :: “hi there” :: nil
Previous slide
Next slide
Back to first slide
View graphic version