A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/HyperSpec/Body/06_acd.htm below:

CLHS: Section 6.1.3.4

CLHS: Section 6.1.3.4 6.1.3.4 Examples of MAXIMIZE and MINIMIZE clauses
 (loop for i in '(2 1 5 3 4)
       maximize i)
=>  5
 (loop for i in '(2 1 5 3 4)
       minimize i)
=>  1
 
;; In this example, FIXNUM applies to the internal variable that holds
;; the maximum value.
 (setq series '(1.2 4.3 5.7))
=>  (1.2 4.3 5.7)
 (loop for v in series 
       maximize (round v) of-type fixnum)
=>  6
 
;; In this example, FIXNUM applies to the variable RESULT.
 (loop for v of-type float in series
       minimize (round v) into result of-type fixnum
       finally (return result))
=>  1

Copyright 1996-2005, LispWorks Ltd. All rights reserved.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4