winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.97k stars 196 forks source link

`array.map` method #5149

Open olivernybroe opened 9 months ago

olivernybroe commented 9 months ago

Feature Spec

array.map: Creates a new array populated with the results of calling a provided function on every element in the calling array.

Use Cases

Transform data into other data.

Implementation Notes

No response

Component

SDK

Community Notes

eladb commented 9 months ago

Removing needs-discussion, this is straightforward.

Chriscbr commented 9 months ago

this is straightforward

Does the map() method accept an inflight function or a preflight function? I suspect we may need to support https://github.com/winglang/wing/issues/435 first

olivernybroe commented 9 months ago

@Chriscbr could be made with inflight first and once the other problem fixed changed to both? 👀

github-actions[bot] commented 7 months ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!