# fortran-container **Repository Path**: dongli85/fortran-container ## Basic Information - **Project Name**: fortran-container - **Description**: This repository contains some container data structure types for Fortran. - **Primary Language**: FORTRAN - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-31 - **Last Updated**: 2024-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # fortran-container This repository contains some container data structure types for Fortran. It is currently in alpha stage, so use it for fun! # Examples ```Fortran program demo use hash_table_mod type(hash_table_type) table type(hash_table_iterator_type) iter table = hash_table() ! Must call this initializer function to allocate internal data. call table%insert('foo', 1) call table%insert('bar', 4.2) print *, table%size ! Should be 2. iter = hash_table_iterator(table) do while (.not. iter%ended()) select type (value => iter%value) type is (integer) print *, iter%key, value type is (real) print *, iter%key, value end select call iter%next() end do end program demo ``` Output: ``` 2 foo 1 bar 4.19999981 ```