Jump to content

Talk:XL (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 92.227.78.106 (talk) at 08:50, 25 June 2013 (Base Case?: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Expression reduction: That's a breaktrough!

Base Case?

// Generic function for the minimum of N item

function Min(X : ordered; ...) return ordered is
  result := Min(...)
  if X < result then
    result := X

Where in this definition is the base case? I.e. what happens when result := Min(...) is evaluated if ... is empty? -- 92.227.78.106 (talk) 08:50, 25 June 2013 (UTC)[reply]