Files
2026-11-19 04:54:17 -06:00

19 lines
541 B
Plaintext

#! @file pair.sakura
#! @author John Christman (sorakatadzuma@gmail.com)
#! @copyright Malunal Studios, LLC.
#! @license MIT
#!
#! Contains `pair`, two values kept together, as `enumerate` gives each element
#! with its index and `zip` the elements of two iterators side by side.
module core;
#! Two values kept together, each named for where it stands.
#! @tparam A The type of the first.
#! @tparam B The type of the second.
pub struct pair<A, B> {
pub var first: A; #! The first value.
pub var second: B; #! The second value.
}