dictionary

#

create dictionary from given block or file, by getting all internal symbols


Parameters

dictionary source :string :block

Attributes

with:blockembed given symbols
rawcreate dictionary from raw block
lowerautomatically convert all keys to lowercase

Returns

  • :dictionary

Examples

copy
none: #[] ; none: [] a: #[ name: "John" age: 34 ] ; a: [name: "John", age: 34] d: #[ name: "John" print "we are in the block" age: 34 print "yep" ] ; we are in the block ; yep ; d: [name: "John", age: 34]

copy
e: #.lower [ Name: "John" suRnaMe: "Doe" AGE: 35 ] ; e: [name:John, surname:Doe, age:35]

Related