remove struct

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Remove (Delete) an element from a structure

Arguments and Return Values

Arguments: A structure and the label of the element desired

Return Value: The element extracted from the structure

Usage

Syntax: remove_struct(object = STRUCT, name = STRING)

The remove_struct() returns an element from a structure. This function is shorthand for "object.name", but in this case, name can be a string variable.

remove_struct() removes the element from the original structure and stores it in a variable.

Examples

dv> struct 
struct, 3 elements
    a: "element 1"
    b: "element 2"
    c: "element 3"

dv> elem = remove_struct(struct,"b")
"element 2"

dv> struct   
struct, 2 elements
    a: "element 1"
    c: "element 3"

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools