From 69aa0003af6848e6ea95b5ff85ca9ef24e747db2 Mon Sep 17 00:00:00 2001 From: Santiago Lapresta Date: Mon, 12 May 2014 01:43:00 +0200 Subject: [PATCH] Added texts/examples to unique_by function --- docs/content/3.manual/manual.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index 2e2fb36..aec2ca1 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -941,9 +941,12 @@ sections: `group_by`. examples: - - program: 'unique' - input: '[1,2,5,3,5,3,1,3]' - output: ['[1,2,3,5]'] + - program: 'unique_by(.foo)' + input: '[{"foo": 1, "bar": 2}, {"foo": 1, "bar": 3}, {"foo": 4, "bar": 5}]' + output: ['[{"foo": 1, "bar": 2}, {"foo": 4, "bar": 5}]'] + - program: 'unique_by(length)' + input: '["chunky", "bacon", "kitten", "cicada", "asparagus"]' + output: ['["chunky", "bacon", "asparagus"]'] - title: `reverse` -- 2.40.0