You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, SAWScript offers a for function for iterating over a list in a monadic fashion:
for : {m, a, b} [a] -> (a -> m b) -> m [b]
For many use cases, however, it would be more convenient to iterate over a list without needing a monad m. For these scenarios, we should offer a map function:
map : {a, b} (a -> b) -> [a] -> [b]
SAWScript does not currently offer this, but it could easily be added.
The text was updated successfully, but these errors were encountered:
Currently, SAWScript offers a
for
function for iterating over a list in a monadic fashion:For many use cases, however, it would be more convenient to iterate over a list without needing a monad
m
. For these scenarios, we should offer amap
function:SAWScript does not currently offer this, but it could easily be added.
The text was updated successfully, but these errors were encountered: