MCPcopy Create free account
hub / github.com/PRQL/prql / try_map

Method try_map

prqlc/prqlc-parser/src/generic.rs:26–31  ·  view source on GitHub ↗
(self, f: F)

Source from the content-addressed store, hash-verified

24 }
25
26 pub fn try_map<U, E, F: Fn(T) -> Result<U, E>>(self, f: F) -> Result<Range<U>, E> {
27 Ok(Range {
28 start: self.start.map(&f).transpose()?,
29 end: self.end.map(f).transpose()?,
30 })
31 }
32
33 pub fn map<U, F: Fn(T) -> U>(self, f: F) -> Range<U> {
34 Range {

Callers 4

type_exprFunction · 0.80
distinctFunction · 0.80
expand_exprFunction · 0.80

Calls 2

mapMethod · 0.80
fFunction · 0.50

Tested by

no test coverage detected