Greatest element of a list: Difference between revisions

Content deleted Content added
→‎{{header|Euphoria}}: added more trivial example
m →‎{{header|Euphoria}}: mistype corrected
Line 376: Line 376:


sequence s
sequence s
s = {"ant", "antelope", "dog", "cat", "cow", "wolf", "wolverine", "aardvark"}
s = {"antelope", "dog", "cat", "cow", "wolf", "wolverine", "aardvark"}
biggun = "ant"
biggun = "ant"
a = aeval( s, routine_id("biggest") )
a = aeval( s, routine_id("biggest") )
Line 401: Line 401:
printf(1,"%d\n",get_biggest(numbers))
printf(1,"%d\n",get_biggest(numbers))


constant animals = { "antelope", "dog", "cat", "cow", "wolf", "wolverine", "aardvark"}
constant animals = {"ant", "antelope", "dog", "cat", "cow", "wolf", "wolverine", "aardvark"}
printf(1,"%s\n",{get_biggest(animals)})</lang>
printf(1,"%s\n",{get_biggest(animals)})</lang>