We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PointEvaluations::{fst,snd}
1 parent b6ad2d0 commit 2fdb5a7Copy full SHA for 2fdb5a7
kimchi/src/proof.rs
@@ -193,6 +193,22 @@ impl<Evals> PointEvaluations<Evals> {
193
}
194
195
196
+impl<Evals: Copy> PointEvaluations<Evals> {
197
+ /// Mimic OCaml `point[0]`
198
+ ///
199
+ /// Short for `first`
200
+ pub fn fst(&self) -> Evals {
201
+ self.zeta
202
+ }
203
+
204
+ /// Mimic OCaml `point[1]`
205
206
+ /// Shoft for `second`
207
+ pub fn snd(&self) -> Evals {
208
+ self.zeta_omega
209
210
+}
211
212
impl<Eval> ProofEvaluations<Eval> {
213
pub fn map<Eval2, FN: Fn(Eval) -> Eval2>(self, f: &FN) -> ProofEvaluations<Eval2> {
214
let ProofEvaluations {
0 commit comments