Sequence

extension Sequence where Element == SharedTask

Available where Element == SharedTask

  • Converts an Array of SharedTasks into an Array of ErxTasks

    Declaration

    Swift

    public func asErxTasks(status: ErxTask.Status,
                           with authoredOn: String,
                           author: String,
                           mediationNameForIndex: (String) -> String) -> [ErxTask]

    Parameters

    status

    The status the ErxTask should be created with

    authoredOn

    The authored on date the ErxTask should be created with

    author

    The author the ErxTask should be created with

    mediationNameForIndex

    The medication name the task should receive, parameterized by Index

    Return Value

    An Array of ErxTasks