Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 809 Bytes

for.md

File metadata and controls

23 lines (16 loc) · 809 Bytes

For loop utilities

Source: include/stdlib/builtin/for.ml

Provides convenient for-based constructs and looping utilities.

Types

Types Description
range Type to hold range-based looping information.
file_range Type to hold file-based looping information.
c_str_range Type to hold string-based looping information.

Functions

Note

iter/start/stop/next methods are not discussed in this document. Check the standard library examples for usage examples.

Functions Description
range Creates an iterator to a sequence of numbers based on the start and stop (optional) values.
lines Creates an iterator to a sequence of lines from the given file.