From e76f7cd4525e135599719af7379b29ce625ccb6f Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Thu, 5 Dec 2013 11:45:43 +0100 Subject: [standard-ml/en-en] Update to list part --- standard-ml.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/standard-ml.html.markdown b/standard-ml.html.markdown index ab5e4b84..f7526bb8 100644 --- a/standard-ml.html.markdown +++ b/standard-ml.html.markdown @@ -95,7 +95,8 @@ val groups = [ [ "Alice", "Bob" ], val number_count = List.length numbers (* gives 7 *) -(* You can put single values in front of lists of the same kind *) +(* You can put single values in front of lists of the same kind + using the :: ("cons") operator *) val more_numbers = 13 :: numbers (* gives [13, 1, 3, 3, 7, ...] *) val more_groups = ["Batman","Superman"] :: groups -- cgit v1.2.3