float  getcomp(<vector>v, int index)
                    
                    
                
            
指定したインデックスのベクトルコンポーネントを返します。
    これは、v[index]と同じです。
                
                    
                    
                    
                        float  getcomp(<matrix>m, int row, int column)
                    
                    
                
            
指定したロケーションのmatrixコンポーネントを返します。
                
                    
                    
                    
                        <type> getcomp(<type>array[], int index)
                    
                    
                
            
指定したインデックスの配列項目を返します。
    これは、array[index]と同じです。
                
                    
                    
                    
                        <type> getcomp(<vector>array[], int i, int j)
                    
                    
                
            
指定した配列インデックスのベクトルコンポーネントを返します。
    これは、getcomp(array[i], j)と同じです。
                
                    
                    
                    
                        <type> getcomp(<matrix>array[], int i, int j, int k)
                    
                    
                
            
指定した配列インデックスのマトリックスコンポーネントを返します。
    これは、getcomp(array[i], j, k)と同じです。
                
                    
                    
                    
                        <type> getcomp(dict d, string index)
                    
                    
                
            
                
                    
                    
                    
                        <type>[] getcomp(dict d, string index)
                    
                    
                
            
指定したインデックスの辞書アイテムを返します。
    これは、d[index]と同じです。
                
                    
                    
                    
                        <type> getcomp(dict d, string index, <type>defvalue)
                    
                    
                
            
                
                    
                    
                    
                        <type>[] getcomp(dict d, string index, <type>defvalue[])
                    
                    
                
            
指定したインデックスの辞書アイテムを返します。
    そのアイテムが存在しなかった場合はdefvalueを返します。
    これは、isvalidindex(d, index) ? d[index] : defvalueと同じです。
                
                    
                    
                    
                        string  getcomp(string value, int index)
                    
                    
                
            
指定したインデックスの 文字 を返します。
    これは、value[index]と同じです。
VEXでの文字も文字列として扱われます。 UTF-8エンコーディングが使用されるので、そのインデックスがUTF-8エンコーディングの途中にある場合、その結果は空っぽの文字列になります。 そうでない場合は、完全に有効なUTF-8文字になります。
| See also | |
| data |