Fortran hash table  0.1
 All Classes Namespaces Files Functions Variables
example_from_readme.f90
Go to the documentation of this file.
1 
3 
6  use dictionary_m
7  implicit none
8 
9  type(dictionary_t) :: d
10 
11  call d%init(1024)
12 
13  call d%set('one', 'one')
14  call d%set('pi', '3.14159')
15 
16  write(*,*) 'one', ' = ', d%get('one')
17  write(*,*) 'pi', ' = ', d%get('pi')
18 
19 end program example_from_readme
program example_from_readme
Define a dictionary_t object, use the set and get methods.
The dictionary contains dict_size buckets (defined at run time)
Dictionary type that uses strings for the keys and values.