Sha256: ed7a4b2cfcc2d41192546a5837118242d747ef02aa923f8ea6d4194c59113404
Contents?: true
Size: 624 Bytes
Versions: 396
Compression:
Stored size: 624 Bytes
Contents
(** list-ops exercise *) (* Please don't use any external modules (especially List) in your implementation. The point of this exercise is to create these basic functions yourself. Note that `++` is a function from an external module (Pervasives, which is automatically opened) and so shouldn't be used either. *) val length : 'a list -> int val reverse : 'a list -> 'a list val map : f:('a -> 'b) -> 'a list -> 'b list val filter : f:('a -> bool) -> 'a list -> 'a list val fold : init:'acc -> f:('acc -> 'a -> 'acc) -> 'a list -> 'acc val append : 'a list -> 'a list -> 'a list val concat : 'a list list -> 'a list
Version data entries
396 entries across 396 versions & 1 rubygems