Hi, Prakash: mo:cleanup-table#1 is a reference to the cleanup-table function in the namespace for the mo prefix that takes a single parameter.
The code is putting the function reference in a map. Presumably, later code gets the 'table' function reference from the map and calls the function, passing a single parameter. Hoping that helps, Erik Hennum ________________________________ From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] on behalf of Prakashkumar Patel [prakashkumar.pa...@tcs.com] Sent: Thursday, July 13, 2017 5:38 AM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Understanding the syntax Hi, I was looking out into a codebase that needs enhancement and I came across something as below. I am not much clear on what 'mo:cleanup-table#1' does. I checked there is a function 'mo:cleanup-table' in the repository. Can someone explain what does mo:cleanup-table#1 do? let $_:=map:put($ht:override,'table',mo:cleanup-table#1) Thanks, Prakash =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general