Initial Commit
This commit is contained in:
789 files changed
+149185
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#! @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.
|
||||
}
|
||||
Reference in new issue
Block a user