Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(llist), | intent(inout), | target | :: | this | ||
procedure(command_fun) | :: | f |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(llist_node), | public, | pointer | :: | token |
function iterate_ll(this, f) result(r)
class(llist), intent(inout), target :: this
procedure(command_fun) :: f
logical :: r
type(llist_node), pointer :: token
token => this%begin
do
if (.not. associated(token)) exit
call f(trim(token%data), r)
if (.not. r) then
exit
end if
token => token%next
end do
end function iterate_ll