Overview Schemas Index

MATHEMATICAL_FUNCTIONS_SCHEMA (jsdai.SMathematical_functions_schema)


FUNCTION space_is_singleton
          (spc : maths_space) : BOOLEAN;

 LOCAL types : SET OF STRING := stripped_typeof ( spc ) ; END_LOCAL ; IF  'finite_space' IN  types THEN  RETURN  ( bool ( SIZEOF ( spc \ finite_space . members ) = 1 ) ) ; END_IF  ; IF 'finite_integer_interval' IN types THEN RETURN  ( bool ( spc \ finite_integer_interval . size = 1 ) ) ; END_IF ; RETURN ( FALSE ) ; 

END_FUNCTION; -- space_is_singleton

public class FSpace_is_singleton
          public static Value run(SdaiContext _context, Value spc)