Stream: beginners

Topic: ✔ List.walk example


view this post on Zulip Michał Łępicki (Oct 23 2022 at 15:22):

List.walk docs have this example:

[2, 4, 8]
    |> List.walk { start: 0, step: Num.add }

But this doesn't seem to compile. Is this how it used to work? Now it takes 3 arguments instead of taking a list and a record

view this post on Zulip Brendan Hansknecht (Oct 23 2022 at 15:28):

Oh, yeah, it shouldn't take a record. It should just take the values for start and step directly

view this post on Zulip Brendan Hansknecht (Oct 23 2022 at 15:28):

List.walk 0 Num.add

view this post on Zulip Brendan Hansknecht (Oct 23 2022 at 15:28):

I guess that was an old API idea that never got updated

view this post on Zulip Michał Łępicki (Oct 23 2022 at 15:33):

I saw some mention about code signing requirement for PRs but don't want to deal with this for now (I probably wouldn't send significant patches to rust or zig code anyway)... Is this requirement just satisfied if I use the built-in github editor? I think GitHub marks commits created this way as "verified" but I'm not sure if it's the same thing

view this post on Zulip Brendan Hansknecht (Oct 23 2022 at 16:12):

If it says verified, then they should be good

view this post on Zulip Chris Duncan (Oct 23 2022 at 18:25):

I'll update the docs

view this post on Zulip Notification Bot (Oct 23 2022 at 21:28):

Michał Łępicki has marked this topic as resolved.

view this post on Zulip Chris Duncan (Oct 23 2022 at 21:49):

@Michał Łępicki
Here's the updated docs PR
https://github.com/roc-lang/roc/pull/4382


Last updated: Jul 06 2025 at 12:14 UTC