79671257

Date: 2025-06-18 20:31:20
Score: 1
Natty:
Report link

You can also use

std.mem.splitAny()

Or

std.mem.splitSequence()


const std = @import("std");
pub fn main() !void{
const input = "Hello World";
//this is to split by spaces
var iter = std.mem.splitAny(u8, input, " ");
while  (iter.next()) |word| {
 std.debug.print("{s}\n", .{word});
 }
 }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ph4mished