HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
josevalim
nested-data-structure-traversal
HISTORICAL RECORD2021–2021
josevalim / nested-data-structure-traversal · Not publicly available

nested-data-structure-traversal

Discover this repository through its Hacker News conversations.

8Distinct people
8Mentions
0Explicit recommenders
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by 6-hour interval8 dated mentions

Observed mentions: 2021-04-08 09:34:53 UTC to 2021-04-13 06:53:29 UTC.

0122021-04-08 06:00:00 UTC to 2021-04-08 12:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 commentsApr 8, 06:002021-04-08 12:00:00 UTC to 2021-04-08 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-08 18:00:00 UTC to 2021-04-09 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-09 00:00:00 UTC to 2021-04-09 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-09 06:00:00 UTC to 2021-04-09 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-09 12:00:00 UTC to 2021-04-09 18:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2021-04-09 18:00:00 UTC to 2021-04-10 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-10 00:00:00 UTC to 2021-04-10 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-10 06:00:00 UTC to 2021-04-10 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-10 12:00:00 UTC to 2021-04-10 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-10 18:00:00 UTC to 2021-04-11 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsApr 10, 18:002021-04-11 00:00:00 UTC to 2021-04-11 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-11 06:00:00 UTC to 2021-04-11 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-11 12:00:00 UTC to 2021-04-11 18:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-11 18:00:00 UTC to 2021-04-12 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-12 00:00:00 UTC to 2021-04-12 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-12 06:00:00 UTC to 2021-04-12 12:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2021-04-12 12:00:00 UTC to 2021-04-12 18:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments2021-04-12 18:00:00 UTC to 2021-04-13 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-04-13 00:00:00 UTC to 2021-04-13 06:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2021-04-13 06:00:00 UTC to 2021-04-13 12:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsApr 13, 06:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Apr 8, 06:002021-04-08 06:00:00 UTC2021-04-08 12:00:00 UTC110
Apr 8, 12:002021-04-08 12:00:00 UTC2021-04-08 18:00:00 UTC000
Apr 8, 18:002021-04-08 18:00:00 UTC2021-04-09 00:00:00 UTC000
Apr 9, 00:002021-04-09 00:00:00 UTC2021-04-09 06:00:00 UTC000
Apr 9, 06:002021-04-09 06:00:00 UTC2021-04-09 12:00:00 UTC000
Apr 9, 12:002021-04-09 12:00:00 UTC2021-04-09 18:00:00 UTC110
Apr 9, 18:002021-04-09 18:00:00 UTC2021-04-10 00:00:00 UTC000
Apr 10, 00:002021-04-10 00:00:00 UTC2021-04-10 06:00:00 UTC000
Apr 10, 06:002021-04-10 06:00:00 UTC2021-04-10 12:00:00 UTC000
Apr 10, 12:002021-04-10 12:00:00 UTC2021-04-10 18:00:00 UTC000
Apr 10, 18:002021-04-10 18:00:00 UTC2021-04-11 00:00:00 UTC000
Apr 11, 00:002021-04-11 00:00:00 UTC2021-04-11 06:00:00 UTC000
Apr 11, 06:002021-04-11 06:00:00 UTC2021-04-11 12:00:00 UTC000
Apr 11, 12:002021-04-11 12:00:00 UTC2021-04-11 18:00:00 UTC000
Apr 11, 18:002021-04-11 18:00:00 UTC2021-04-12 00:00:00 UTC000
Apr 12, 00:002021-04-12 00:00:00 UTC2021-04-12 06:00:00 UTC000
Apr 12, 06:002021-04-12 06:00:00 UTC2021-04-12 12:00:00 UTC211
Apr 12, 12:002021-04-12 12:00:00 UTC2021-04-12 18:00:00 UTC202
Apr 12, 18:002021-04-12 18:00:00 UTC2021-04-13 00:00:00 UTC101
Apr 13, 00:002021-04-13 00:00:00 UTC2021-04-13 06:00:00 UTC000
Apr 13, 06:002021-04-13 06:00:00 UTC2021-04-13 12:00:00 UTC101

What Hacker News says

8 sources
IMHO, the Haskell version using mapAccumL[1] is actually quite a nice demonstration of the power of having lots of computational patterns available immediately from the standard library. The biggest problem in Haskell that a language like JS doesn’t have is the types: you’re converting both the outer type for sections and the inner type for lessons into something else, so in any language with explicit static types you’re going to have the overhead of specifying those, or you have to hack around it a bit as we see here. However, if you ignore the type boilerplate and the definition of the input data, the substance of the algorithm here would be around the same length as the imperative JS for-of version, particularly with less verbose names for the local variables as idiomatic Haskell tends to use. With all four types explicitly defined and
Read the rest
using another map-accumulate instead of the zipWith so updating the lessons with their positions was done similarly to updating the sections, I think it could be quite readable as well, even with Haskell’s limited support for record types. [Edit: Having actually tried this now, even with DuplicateRecordFields, my Haskell code still seems unnecessarily verbose because of the record manipulations, but I still quite like the use of mapAccumL for making the pattern of computation explicit.] [1] https://github.com/josevalim/nested-data-structure-traversal...
In Traversing nested data-structures in various languages
Just wanting to say that all JS solutions are quite 'bad', except the simple for-of, because they're combining pure array methods (.map, .reduce) and side-effects (external variable to that method), not even talking about modifying Array protoype https://github.com/josevalim/nested-data-structure-traversal..., never do this, don't touch to objects you don't own, and that others would access and not expect to be modified! I'll make a PR to try to contribute, instead of just complaining like that, hehe Btw I'm surprised the structure isn't deeply nested (requiring recursion to process it), it'd be more interesting
In Traversing nested data-structures in various languages

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.