clr(3f) - [M_list::dictionary::OOPS] clear basic dictionary (LICENSE:PD)
Synopsis
Description
Options
Examples
Author
License
type(dictionary) :: dict
call dict%clr()
clear a basic dictionary.
DICT the dictionary.
create and clear a basic dictionary
program demo_clr use M_list, only : dictionary implicit none type(dictionary) :: caps integer :: i ! create a character string dictionary call caps%set(A,aye) call caps%set(B,bee) call caps%set(C,see) call caps%set(D,dee) ! show current dictionary write(*,("DICTIONARY BEFORE CLEARED")) write(*,101)(trim(caps%key(i)),trim(caps%value(i)),i=1,size(caps%key)) call caps%clr() write(*,("DICTIONARY AFTER CLEARED")) ! show current dictionary write(*,101)(trim(caps%key(i)),trim(caps%value(i)),i=1,size(caps%key))Results101 format (1x,*(a,"=",a,"",:,",")) end program demo_clr
> DICTIONARY BEFORE CLEARED > D=dee,C=see,B=bee,A=aye > DICTIONARY AFTER CLEARED
John S. Urban
Public Domain
Nemo Release 3.1 | clr (3) | February 23, 2025 |