Skip to content

Comment on I have been using Mixtral everyday for coding and I think it has saved me days

Comments

Note that I had to remove two of the test cases to fit in the HN character limit:

                      {
   name:         "Large Input Slice",
   input:        []any{"A", "B", "C", "D", "E", "F"},
   chunkSize:    3,
   expectedChks: [][]any{{"A", "B", "C"}, {"D", "E", "F"}},
  },
  {
   name:         "Remaindered Large Input Slice",
   input:        []any{"W", "X", "Y", "Z", "1", "2"},
   chunkSize:    4,
   expectedChks: [][]any{{"W", "X", "Y", "Z"}, {"1", "2"}},
  },
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.