Skip to content

Commit 3c6f076

Browse files
committed
Final changes
1 parent c5cd2ae commit 3c6f076

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

jsrc/algorithm.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,21 @@ auto zip_find(P pred, I f, I l, Is... fs) {
1616
return std::tuple{f, fs...};
1717
}
1818

19+
/**
20+
* @brief Predicate version of `algo::zip_found`
21+
*/
1922
template <typename P, typename I, typename... Is>
2023
auto zip_found(P pred, I f, I l, Is... fs) {
2124
auto const t = zip_find(pred, f, l, fs...);
2225
return std::get<0>(t) != l;
2326
}
2427

28+
/**
29+
* @brief Predicate version of `std::mismatch`
30+
*/
2531
template <typename I, typename I2>
2632
auto is_mismatched(I f, I l, I2 f2) {
2733
return std::mismatch(f, l, f2).first != l;
2834
}
2935

30-
}
36+
}

learning/LIVESTREAM_LESSONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Prelude> let innerProduct = blackbird sum (zipWith (*))
128128
* Discrovered [Try J](http://tryj.freeddns.org/) site set up by Nathan
129129
* Used our first C++ Standard Algorithm (`std::mismatch` x2)
130130

131-
### Livestream #8 2021-02-24
131+
### Livestream #9 2021-02-24
132132

133133
* Learned about J's `trace` function from Bob's video
134134
* Learned this fancy incantation `((void)++fs,...)`

0 commit comments

Comments
 (0)