Skip to content

ex1 1

← Back

Basic Info

Functional Programming
└── Lab ML
    └── 0​411
        └── ex1 1.sml

Preview

(* Write, in curried form, a function applyList that takes a list of functions and applies each function to the value, producing a list of the results *)

fun applyList nil _ =
    nil
| applyList (F::Fs) a =
    F(a)::(applyList Fs a)
;