std-ssmap


Synopsis

(std-ssmap <func> <ss>) ; calls func for each ent in ss

Description

This function calls the function func (requiring exactly one argument) with every element from the selection set.

This is useful for processing every entity in the chosen selection set in a faster way than with STD-SSLIST. It needs less memory, but is harder to read.

Note:

This function was formerly called SSAPPLY in the comp.cad.autocad AutoLISP FAQ.

Arguments

func: A function or lambda list taking one argument, which must be of type ENAME.

ss: A selection set, of type PICKSET.

Return Value

Not defined. Most likely the result of the function called with the last entity.

Note: This is different from MAPCAR.

Side Effects

Depending on the function. Usually only called because of its sideeffects.

Module

(std-require 'STDENT)

Defined in STDENT