Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> How do I safely write a function that takes a linked list as a parameter?

Zig does not have a lot of generic code. You would pass the user directly and then walk the list or you use comptime. The real answer is that "you don't write code like that in Zig".



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: