docstr: ivy.Array instance method variant of ivy.default. This method simply
  wraps the function, and so the docstring for ivy.default also applies
  to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array
  default_val
      The default value.
  catch_exceptions
      Whether to catch exceptions from callable x. Default is ``False``.
  rev
      Whether to reverse the input x and default_val. Default is ``False``.
  with_callable
      Whether either of the arguments might be callable functions.
      Default is ``False``.
  
  Returns
  -------
  ret
      x if x exists (is not None), else default.
  
  Examples
  --------
  >>> x = ivy.array([1, 2, 3, 1.2])
  >>> y = x.default(0)
  >>> print(y)
  ivy.array([1. , 2. , 3. , 1.2])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.default",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.default","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array","default_val","The","default","value",".","catch_exceptions","Whether","to","catch","exceptions","from","callable","x",".","Default","is","``","False","``",".","rev","Whether","to","reverse","the","input","x","and","default_val",".","Default","is","``","False","``",".","with_callable","Whether","either","of","the","arguments","might","be","callable","functions",".","Default","is","``","False","``",".","Returns","--","--","--","-","ret","x","if","x","exists","(","is","not","None",")",",","else","default",".","Examples","--","--","--","--",">",">",">","x","=","ivy.array","(","[","1",",","2",",","3",",","1.2","]",")",">",">",">","y","=","x.default","(","0",")",">",">",">","print","(","y",")","ivy.array","(","[","1.",",","2.",",","3.",",","1.2","]",")"]
code: def default(
      self: ivy.Array,
      /,
      default_val: Any,
      *,
      catch_exceptions: bool = False,
      rev: bool = False,
      with_callable: bool = False,
  ) -> Any:
      """ivy.Array instance method variant of ivy.default. This method simply
      wraps the function, and so the docstring for ivy.default also applies
      to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array
      default_val
          The default value.
      catch_exceptions
          Whether to catch exceptions from callable x. Default is ``False``.
      rev
          Whether to reverse the input x and default_val. Default is ``False``.
      with_callable
          Whether either of the arguments might be callable functions.
          Default is ``False``.
  
      Returns
      -------
      ret
          x if x exists (is not None), else default.
  
      Examples
      --------
      >>> x = ivy.array([1, 2, 3, 1.2])
      >>> y = x.default(0)
      >>> print(y)
      ivy.array([1. , 2. , 3. , 1.2])
      """
      return ivy.default(
          self,
          default_val,
          catch_exceptions=catch_exceptions,
          rev=rev,
          with_callable=with_callable,
      )
  
imports: import abc
  import numpy
  from numbers import Number
  from typing import Any, Iterable, Union, Optional, Dict, Callable, List, Tuple
  import ivy
label_desc: Use image node_id 26 for calling the _ArrayWithGeneral obj's underlying member method code with example usage: obj.default(default_val) and returns: ivy