neo4j :: NeoNodeCollection :: get_or_null
null
Note: The default implementation uses iterator.
iterator
# Retrieve the node that has the specified local id, or return `null`. # # Note: The default implementation uses `iterator`. fun get_or_null(id: ID_TYPE): nullable NeoNode do for n in self do if id_of(n) == id then return n end return null end
redef fun get_or_null(id) do if id < 0 or id > nodes.length then return null return nodes[id] end