Skip to content

Commit ad5fe2b

Browse files
authored
chore: monad vs. monoid (#4283)
A monad is a monoid in the category of endofunctors. Signed-off-by: Connor Tsui <[email protected]>
1 parent d7c3500 commit ad5fe2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vortex-array/src/compute/take.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl ComputeFnVTable for Take {
8484
stats.combine_sets(&derived_stats, array.dtype())?;
8585

8686
for (stat, val) in stats {
87-
// Alternatively, use a monadic reducer here to set `stat = val`, or if it already
87+
// Alternatively, use a monoidal pattern here to set `stat = val`, or if it already
8888
// exists, combine the two stats (similar to how `combine_sets` does it).
8989
taken_array.statistics().set(stat, val)
9090
}

0 commit comments

Comments
 (0)