From 072ebb911b1c783a742014d8211f7cde5280c71d Mon Sep 17 00:00:00 2001 From: Santiago Lapresta Date: Wed, 21 May 2014 01:23:28 +0200 Subject: [PATCH] Documented `del` command --- docs/content/3.manual/manual.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml index aec2ca19..801b4b21 100644 --- a/docs/content/3.manual/manual.yml +++ b/docs/content/3.manual/manual.yml @@ -607,6 +607,20 @@ sections: input: '[[0,1], ["a","b","c"]]' output: ['[false, true]'] + - title: `del` + body: | + + The builtin function `del` removes a key and its corresponding + value from an object. + + examples: + - program: 'del(.foo)' + input: '[{"foo": 42, "bar": 9001, "baz": 42}]' + output: ['{"bar": 9001, "baz": 42}'] + - program: 'del(.[1, 2])' + input: '[["foo", "bar", "baz"]]' + output: ['["foo"]'] + - title: `to_entries`, `from_entries`, `with_entries` body: |