You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be nice to have these functions in 3.08:
List.unsafe_tl ("%list_unsafe_tl")
List.unsafe_hd ("%list_unsafe_hd")
let unsafe_hd list : ('a list -> 'a) =
Obj.obj (Obj.field (Obj.repr list) 0))
and unsafe_tl list : ('a list -> 'a list) =
Obj.obj (Obj.field (Obj.repr list) 1))
works even slowly than List.hd and List.tl.
The text was updated successfully, but these errors were encountered:
Original bug ID: 2919
Reporter: administrator
Status: closed
Resolution: won't fix
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Evgeny Chukreev
Version:
OS:
Submission from: host134.t3n.sotline.ru (81.1.200.134)
It will be nice to have these functions in 3.08:
List.unsafe_tl ("%list_unsafe_tl")
List.unsafe_hd ("%list_unsafe_hd")
let unsafe_hd list : ('a list -> 'a) =
Obj.obj (Obj.field (Obj.repr list) 0))
and unsafe_tl list : ('a list -> 'a list) =
Obj.obj (Obj.field (Obj.repr list) 1))
The text was updated successfully, but these errors were encountered: