Module:Utils/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 18: Line 18:
: Checks if <code>s</code> is a non-empty string.
: Checks if <code>s</code> is a non-empty string.


; <code>eval_num_arg(input, def_value)</code>*
; <code>eval_num_arg(input,&nbsp;def_value)</code>*
: Checks if <code>input</code> is a number; on error, use <code>def_value</code>.
: Checks if <code>input</code> is a number; on error, use <code>def_value</code>.


Line 46: Line 46:


; <code>next_young_diagram(d)</code>
; <code>next_young_diagram(d)</code>
: Returns the next Young diagram of the same size; the first one is <code>[N]</code>, the last one is <code>[1, 1, ..., 1]</code>. After the last one, <code>nil</code> is returned. The input table is modified.
: Returns the next Young diagram of the same size; the first one is <code>[N]</code>, the last one is <code>{{nowrap|[1, 1, ..., 1]}}</code>. After the last one, <code>nil</code> is returned. The input table is modified.




<nowiki />* These functions are designed to be used by other modules only; they cannot be called with <code>{{<nowiki />#invoke:&nbsp;}}</code>.
<nowiki />* These functions are designed to be used by other modules only; they cannot be called with <code>{{<nowiki />#invoke:&nbsp;}}</code>.
}}
}}