File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 11# Generics
22
33Generics is the topic of generalizing types and functionalities to broader cases.
4- This is extremely useful for reducing code duplication in many ways, but can call for rather involving syntax.
4+ This is extremely useful for reducing code duplication in many ways, but can call for some rather involved syntax.
55Namely, being generic requires taking great care to specify over which types a generic type is actually considered valid.
66The simplest and most common use of generics is for type parameters.
77
Original file line number Diff line number Diff line change 1313// - Append "bar" to the string a specified amount of times
1414//
1515// The exact form of this will be:
16- // - The input is going to be a vector of a 2-length tuple ,
16+ // - The input is going to be a Vector of 2-length tuples ,
1717// the first element is the string, the second one is the command.
1818// - The output element is going to be a vector of strings.
1919
You can’t perform that action at this time.
0 commit comments