definition:
|
addPageParam :: HtmlPage -> PageParam -> HtmlPage
addPageParam (HtmlPage title params hexps) param =
HtmlPage title (param:params) hexps
addPageParam hexp@(HtmlAnswer _ _) _ = hexp
|
demand:
|
argument 1
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Adds a parameter to an HTML page.
--- @param page - a page
--- @param param - a page's parameter
--- @return an HTML page
|
failfree:
|
(_, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
infixl
|
iotype:
|
{({HtmlPage},_) |-> {HtmlPage} || ({HtmlAnswer},_) |-> {HtmlAnswer}}
|
name:
|
addPageParam
|
precedence:
|
0
|
result-values:
|
_
|
signature:
|
HtmlPage -> PageParam -> HtmlPage
|
solution-complete:
|
operationally complete operation
|
terminating:
|
yes
|
totally-defined:
|
reducible on all ground data terms
|