def extract_function_from_command(command):
    """
    Extracts and returns the function used in the current command.
    for example: `lc.ln(a,52)` -> ln

    :return: function name
    """
    function_name = command.split(".")[1]
    end_index = function_name.index("(")
    function_name = function_name[:end_index]
    return function_name