Anonymous user
Monads: Difference between revisions
m
→List Monad: verbage
m (→Maybe Monad: verbage) |
m (→List Monad: verbage) |
||
Line 125:
===List Monad===
Here we create a class to do Monad like things. Unlike Ruby, we can't augment the baked in List/Array class so this more verbose. Also unlike Ruby, we can directly compose as we are applying the composition to each element (vs the list-as-object).▼
{{trans|Ruby}}
▲Here we create a class to do Monad like things. Unlike Ruby, we can't augment the baked in List/Array
<lang zkl>class MList{
fcn init(xs){ var list=vm.arglist }
|