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

it calls the method drawImage on the context object.

ignore, in OCaml, allows to "cast the expression to void"



Casting is a bit of a wrong term here, since that's not at all what happens. `ignore` is just a function that takes any argument and returns `()` (unit). That's useful because sometimes you want to throw away the result of the computation (usually a side effect), so you can just call `ignore` on it and get a `()` value out.




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

Search: