MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / comma_separate

Function comma_separate

src/sql-pretty/src/util.rs:59–66  ·  view source on GitHub ↗
(f: F, v: I)

Source from the content-addressed store, hash-verified

57}
58
59pub(crate) fn comma_separate<'a, F, T: 'a, I>(f: F, v: I) -> RcDoc<'a, ()>
60where
61 F: Fn(&'a T) -> RcDoc<'a>,
62 I: IntoIterator<Item = &'a T>,
63{
64 let docs = v.into_iter().map(f);
65 comma_separated(docs)
66}
67
68pub(crate) fn comma_separated<'a, I>(v: I) -> RcDoc<'a, ()>
69where

Callers 15

doc_create_sourceMethod · 0.85
doc_create_tableMethod · 0.85
doc_create_connectionMethod · 0.85
doc_create_sinkMethod · 0.85
doc_create_subsourceMethod · 0.85
doc_create_clusterMethod · 0.85
doc_create_indexMethod · 0.85
doc_copyMethod · 0.85

Calls 3

comma_separatedFunction · 0.70
mapMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected