public static UnifiedIterableLiteral ToLazyListLiteral(
     this UnifiedExpression singleton)
 {
     if (singleton == null)
     {
         return(UnifiedIterableLiteral.Create());
     }
     return(UnifiedIterableLiteral.Create(singleton));
 }
        public static UnifiedExpression ToSmartLazyListLiteral(
            this IEnumerable <UnifiedExpression> expressions)
        {
            var list = expressions.ToList();

            if (list.Count == 1)
            {
                return(list[0]);
            }
            return(UnifiedIterableLiteral.Create(list));
        }
 public static UnifiedIterableLiteral ToLazyListLiteral(
     this IEnumerable <UnifiedExpression> expressions)
 {
     return(UnifiedIterableLiteral.Create(expressions));
 }