1Coercions.void(3kaya) Kaya module reference Coercions.void(3kaya)
2
3
4
6 Coercions::void - Coercion to Void.
7
9 Void void( a x )
10
12 x The value to discard
13
15 Coerces any value to Void (i.e. discards it), usually used for discardā
16 ing the result of a function. For example, the HTMLDocument(3kaya)
17 functions for adding elements to the tree return the element just
18 added, which is often not necessary.
19
20
21 p = addParagraph(doc.body,"Hello ");
22 void(appendInlineElement(p,StrongEmphasis,"World!"));
23
24 Another use is in discarding the return value from database update
25 queries
26
28 Kaya standard library by Edwin Brady, Chris Morris and others
29 (kaya@kayalang.org). For further information see http://kayalang.org/
30
32 The Kaya standard library is free software; you can redistribute it
33 and/or modify it under the terms of the GNU Lesser General Public
34 License (version 2.1 or any later version) as published by the Free
35 Software Foundation.
36
37
38
39Kaya December 2010 Coercions.void(3kaya)